Skip to content

Commit c1c7c01

Browse files
committed
Change Cover
1 parent 70f0996 commit c1c7c01

File tree

10 files changed

+195
-39
lines changed

10 files changed

+195
-39
lines changed

DLWeiboProfileController/.DS_Store

0 Bytes
Binary file not shown.

DLWeiboProfileController/DLWeiboProfileController.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
AAB80F7F1EA302D400CD17FD /* DLWallPaperView.m in Sources */ = {isa = PBXBuildFile; fileRef = AAB80F7E1EA302D400CD17FD /* DLWallPaperView.m */; };
1111
AAB80F811EA303C000CD17FD /* DLWallPaperView.xib in Resources */ = {isa = PBXBuildFile; fileRef = AAB80F801EA303C000CD17FD /* DLWallPaperView.xib */; };
12+
AAB80F841EA3219400CD17FD /* DLChooseWallPaperController.m in Sources */ = {isa = PBXBuildFile; fileRef = AAB80F831EA3219400CD17FD /* DLChooseWallPaperController.m */; };
1213
AAC36D0C1E99C9D40058C627 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AAC36D0B1E99C9D40058C627 /* main.m */; };
1314
AAC36D171E99C9D40058C627 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AAC36D161E99C9D40058C627 /* Assets.xcassets */; };
1415
AAC36D1A1E99C9D40058C627 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AAC36D181E99C9D40058C627 /* LaunchScreen.storyboard */; };
@@ -55,6 +56,8 @@
5556
AAB80F7D1EA302D400CD17FD /* DLWallPaperView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DLWallPaperView.h; sourceTree = "<group>"; };
5657
AAB80F7E1EA302D400CD17FD /* DLWallPaperView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLWallPaperView.m; sourceTree = "<group>"; };
5758
AAB80F801EA303C000CD17FD /* DLWallPaperView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = DLWallPaperView.xib; sourceTree = "<group>"; };
59+
AAB80F821EA3219400CD17FD /* DLChooseWallPaperController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DLChooseWallPaperController.h; sourceTree = "<group>"; };
60+
AAB80F831EA3219400CD17FD /* DLChooseWallPaperController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLChooseWallPaperController.m; sourceTree = "<group>"; };
5861
AAC36D071E99C9D40058C627 /* DLWeiboProfileController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DLWeiboProfileController.app; sourceTree = BUILT_PRODUCTS_DIR; };
5962
AAC36D0B1E99C9D40058C627 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
6063
AAC36D161E99C9D40058C627 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
@@ -247,6 +250,8 @@
247250
AAC36D411E99CB070058C627 /* AppDelegate.m */,
248251
AAC36D421E99CB070058C627 /* ViewController.h */,
249252
AAC36D431E99CB070058C627 /* ViewController.m */,
253+
AAB80F821EA3219400CD17FD /* DLChooseWallPaperController.h */,
254+
AAB80F831EA3219400CD17FD /* DLChooseWallPaperController.m */,
250255
);
251256
path = ViewController;
252257
sourceTree = "<group>";
@@ -461,6 +466,7 @@
461466
AAC36D441E99CB070058C627 /* AppDelegate.m in Sources */,
462467
AAC36D641E99CC0F0058C627 /* PersonalRightViewController.m in Sources */,
463468
AAC36D0C1E99C9D40058C627 /* main.m in Sources */,
469+
AAB80F841EA3219400CD17FD /* DLChooseWallPaperController.m in Sources */,
464470
AAB80F7F1EA302D400CD17FD /* DLWallPaperView.m in Sources */,
465471
AAC36D4E1E99CBE90058C627 /* ContentViewCell.m in Sources */,
466472
AAC36D611E99CC0F0058C627 /* PersonalCenterTableView.m in Sources */,

DLWeiboProfileController/DLWeiboProfileController/Main.storyboard

Lines changed: 88 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<dependencies>
77
<deployment identifier="iOS"/>
88
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
9+
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<scenes>
@@ -43,7 +44,7 @@
4344
</viewController>
4445
<placeholder placeholderIdentifier="IBFirstResponder" id="fSd-Ow-VpT" userLabel="First Responder" sceneMemberID="firstResponder"/>
4546
</objects>
46-
<point key="canvasLocation" x="-98" y="-26"/>
47+
<point key="canvasLocation" x="-158" y="-66"/>
4748
</scene>
4849
<!--Personal Center Controller-->
4950
<scene sceneID="tne-QT-ifu">
@@ -82,12 +83,12 @@
8283
</viewController>
8384
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
8485
</objects>
85-
<point key="canvasLocation" x="855" y="-25"/>
86+
<point key="canvasLocation" x="738" y="-24"/>
8687
</scene>
87-
<!--View Controller-->
88+
<!--Choose Wall Paper Controller-->
8889
<scene sceneID="DXJ-pj-ddP">
8990
<objects>
90-
<viewController id="qS8-fE-lyf" sceneMemberID="viewController">
91+
<viewController storyboardIdentifier="wallPaperController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="qS8-fE-lyf" customClass="DLChooseWallPaperController" sceneMemberID="viewController">
9192
<layoutGuides>
9293
<viewControllerLayoutGuide type="top" id="CRJ-nJ-CMg"/>
9394
<viewControllerLayoutGuide type="bottom" id="XuH-Qh-zsP"/>
@@ -96,40 +97,89 @@
9697
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
9798
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
9899
<subviews>
99-
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4HY-ny-3pi" customClass="DLWallPaperView">
100-
<rect key="frame" x="10" y="56" width="155" height="116"/>
101-
<subviews>
102-
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vOa-c5-EFc" customClass="DLWallPaperView">
103-
<rect key="frame" x="8" y="0.0" width="155" height="116"/>
104-
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
105-
</view>
106-
</subviews>
107-
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
100+
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DQk-UY-raw">
101+
<rect key="frame" x="15" y="15" width="165" height="123"/>
108102
<constraints>
109-
<constraint firstItem="vOa-c5-EFc" firstAttribute="top" secondItem="4HY-ny-3pi" secondAttribute="top" id="BB3-zh-eKm"/>
110-
<constraint firstAttribute="trailing" secondItem="vOa-c5-EFc" secondAttribute="trailing" constant="20" id="Ba4-vT-Df7"/>
111-
<constraint firstItem="vOa-c5-EFc" firstAttribute="leading" secondItem="4HY-ny-3pi" secondAttribute="leading" constant="20" id="kl3-sf-Kap"/>
103+
<constraint firstAttribute="width" secondItem="DQk-UY-raw" secondAttribute="height" multiplier="55:41" id="fwo-Sl-wQd"/>
112104
</constraints>
113-
</view>
114-
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="E3J-K0-WQe" customClass="DLWallPaperView">
115-
<rect key="frame" x="181" y="56" width="155" height="116"/>
116-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
117-
<subviews>
118-
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vqD-nh-73Q" customClass="DLWallPaperView">
119-
<rect key="frame" x="23" y="0.0" width="155" height="116"/>
120-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
121-
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
122-
</view>
123-
</subviews>
124-
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
125-
</view>
105+
<state key="normal" backgroundImage="wallPaper1"/>
106+
<connections>
107+
<action selector="buttonAction:" destination="qS8-fE-lyf" eventType="touchUpInside" id="Pux-i6-zyT"/>
108+
</connections>
109+
</button>
110+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ppP-YD-pwS">
111+
<rect key="frame" x="195" y="15" width="165" height="123"/>
112+
<state key="normal" backgroundImage="wallPaper2"/>
113+
<connections>
114+
<action selector="buttonAction:" destination="qS8-fE-lyf" eventType="touchUpInside" id="Dze-Jy-uSq"/>
115+
</connections>
116+
</button>
117+
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="t3p-bu-3wv">
118+
<rect key="frame" x="15" y="153" width="165" height="123"/>
119+
<constraints>
120+
<constraint firstAttribute="width" secondItem="t3p-bu-3wv" secondAttribute="height" multiplier="55:41" id="a2x-Go-CMY"/>
121+
</constraints>
122+
<state key="normal" backgroundImage="wallPaper3"/>
123+
<connections>
124+
<action selector="buttonAction:" destination="qS8-fE-lyf" eventType="touchUpInside" id="vWb-wM-55d"/>
125+
</connections>
126+
</button>
127+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="U5u-4z-cH1">
128+
<rect key="frame" x="195" y="153" width="165" height="123"/>
129+
<state key="normal" backgroundImage="wallPaper4"/>
130+
<connections>
131+
<action selector="buttonAction:" destination="qS8-fE-lyf" eventType="touchUpInside" id="Njc-e6-xO5"/>
132+
</connections>
133+
</button>
134+
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ars-3v-4hy">
135+
<rect key="frame" x="15" y="291" width="165" height="123"/>
136+
<constraints>
137+
<constraint firstAttribute="width" secondItem="Ars-3v-4hy" secondAttribute="height" multiplier="55:41" id="9ON-Ee-n8H"/>
138+
</constraints>
139+
<state key="normal" backgroundImage="wallPaper5"/>
140+
<connections>
141+
<action selector="buttonAction:" destination="qS8-fE-lyf" eventType="touchUpInside" id="bes-Mb-Pxq"/>
142+
</connections>
143+
</button>
144+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QmO-5N-Ftx">
145+
<rect key="frame" x="195" y="291" width="165" height="123"/>
146+
<state key="normal" backgroundImage="wallPaper6"/>
147+
<connections>
148+
<action selector="buttonAction:" destination="qS8-fE-lyf" eventType="touchUpInside" id="Sge-ye-bT1"/>
149+
</connections>
150+
</button>
126151
</subviews>
127152
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
153+
<constraints>
154+
<constraint firstItem="QmO-5N-Ftx" firstAttribute="top" secondItem="U5u-4z-cH1" secondAttribute="bottom" constant="15" id="1Qw-PG-h9q"/>
155+
<constraint firstItem="t3p-bu-3wv" firstAttribute="top" secondItem="DQk-UY-raw" secondAttribute="bottom" constant="15" id="4MZ-Fq-sQV"/>
156+
<constraint firstItem="DQk-UY-raw" firstAttribute="width" secondItem="ppP-YD-pwS" secondAttribute="width" id="9Lu-xv-ZAh"/>
157+
<constraint firstItem="ppP-YD-pwS" firstAttribute="centerY" secondItem="DQk-UY-raw" secondAttribute="centerY" id="A1t-uF-GQN"/>
158+
<constraint firstItem="QmO-5N-Ftx" firstAttribute="leading" secondItem="Ars-3v-4hy" secondAttribute="trailing" constant="15" id="Csw-7g-mBd"/>
159+
<constraint firstAttribute="trailing" secondItem="ppP-YD-pwS" secondAttribute="trailing" constant="15" id="E69-9F-vjf"/>
160+
<constraint firstAttribute="trailing" secondItem="QmO-5N-Ftx" secondAttribute="trailing" constant="15" id="HXx-fF-kak"/>
161+
<constraint firstItem="DQk-UY-raw" firstAttribute="height" secondItem="ppP-YD-pwS" secondAttribute="height" id="Hef-bi-e3b"/>
162+
<constraint firstItem="Ars-3v-4hy" firstAttribute="height" secondItem="QmO-5N-Ftx" secondAttribute="height" id="Heo-al-ySW"/>
163+
<constraint firstItem="Ars-3v-4hy" firstAttribute="width" secondItem="QmO-5N-Ftx" secondAttribute="width" id="KJL-LE-XQD"/>
164+
<constraint firstItem="U5u-4z-cH1" firstAttribute="leading" secondItem="t3p-bu-3wv" secondAttribute="trailing" constant="15" id="Pah-eq-pYh"/>
165+
<constraint firstItem="t3p-bu-3wv" firstAttribute="width" secondItem="U5u-4z-cH1" secondAttribute="width" id="Qvo-1S-x2G"/>
166+
<constraint firstItem="U5u-4z-cH1" firstAttribute="top" secondItem="ppP-YD-pwS" secondAttribute="bottom" constant="15" id="S45-O9-ixF"/>
167+
<constraint firstItem="Ars-3v-4hy" firstAttribute="top" secondItem="t3p-bu-3wv" secondAttribute="bottom" constant="15" id="UFX-jY-WAa"/>
168+
<constraint firstItem="t3p-bu-3wv" firstAttribute="leading" secondItem="3vD-7h-3cr" secondAttribute="leading" constant="15" id="Vco-g5-fQ4"/>
169+
<constraint firstItem="ppP-YD-pwS" firstAttribute="leading" secondItem="DQk-UY-raw" secondAttribute="trailing" constant="15" id="Yzh-og-8FR"/>
170+
<constraint firstItem="DQk-UY-raw" firstAttribute="top" secondItem="CRJ-nJ-CMg" secondAttribute="bottom" constant="15" id="Zyu-IB-Maz"/>
171+
<constraint firstItem="DQk-UY-raw" firstAttribute="leading" secondItem="3vD-7h-3cr" secondAttribute="leading" constant="15" id="bKL-HF-XnA"/>
172+
<constraint firstItem="Ars-3v-4hy" firstAttribute="leading" secondItem="3vD-7h-3cr" secondAttribute="leading" constant="15" id="gd0-OL-bdP"/>
173+
<constraint firstItem="t3p-bu-3wv" firstAttribute="height" secondItem="U5u-4z-cH1" secondAttribute="height" id="y2K-Jo-j27"/>
174+
<constraint firstAttribute="trailing" secondItem="U5u-4z-cH1" secondAttribute="trailing" constant="15" id="z7a-Jr-gEJ"/>
175+
</constraints>
128176
</view>
177+
<navigationItem key="navigationItem" id="Wrg-qa-rMN"/>
178+
<nil key="simulatedStatusBarMetrics"/>
129179
</viewController>
130180
<placeholder placeholderIdentifier="IBFirstResponder" id="5hg-eF-Etw" userLabel="First Responder" sceneMemberID="firstResponder"/>
131181
</objects>
132-
<point key="canvasLocation" x="1542" y="-56"/>
182+
<point key="canvasLocation" x="1554" y="-43"/>
133183
</scene>
134184
<!--Navigation Controller-->
135185
<scene sceneID="6en-VW-SzP">
@@ -150,4 +200,12 @@
150200
<point key="canvasLocation" x="-1234.4000000000001" y="-17.541229385307346"/>
151201
</scene>
152202
</scenes>
203+
<resources>
204+
<image name="wallPaper1" width="600" height="400"/>
205+
<image name="wallPaper2" width="600" height="400"/>
206+
<image name="wallPaper3" width="600" height="810"/>
207+
<image name="wallPaper4" width="600" height="400"/>
208+
<image name="wallPaper5" width="600" height="415"/>
209+
<image name="wallPaper6" width="600" height="400"/>
210+
</resources>
153211
</document>

DLWeiboProfileController/DLWeiboProfileController/View/DLUserHeaderView.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ +(DLUserHeaderView *)userHeaderView
2424
return [[[NSBundle mainBundle] loadNibNamed:@"DLUserHeaderView" owner:nil options:nil] firstObject];
2525
}
2626

27-
28-
- (IBAction)buttonAction:(id)sender {
29-
27+
- (IBAction)tapOnImageView:(id)sender {
3028
if (self.delegate && [self.delegate respondsToSelector:@selector(userHeaderViewButtonDidClick:)]) {
3129
[self.delegate userHeaderViewButtonDidClick:self];
3230
}
3331
}
3432

33+
- (IBAction)buttonAction:(id)sender {
34+
35+
36+
}
37+
3538
@end

0 commit comments

Comments
 (0)