Skip to content

Commit e040353

Browse files
committed
看板 - 配图
1 parent 61d88de commit e040353

20 files changed

+83
-4
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 64 additions & 0 deletions
Large diffs are not rendered by default.

Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
229229
@"本地阅读")];
230230
}else{
231231
[cell setImageStr:(indexPath.section == 2? (indexPath.row == 0? @"project_item_task":
232-
@"project_item_task"):
232+
@"project_item_taskboard"):
233233
indexPath.section == 3? (indexPath.row == 0? @"project_item_topic":
234234
@"project_item_file"):
235235
indexPath.section == 4? (indexPath.row == 0? @"project_item_code":

Coding_iOS/Controllers/TaskBoardsViewController.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ - (void)viewDidLoad {
4242
icarousel.bounceDistance = 0.2;
4343
[self.view addSubview:icarousel];
4444
[icarousel mas_makeConstraints:^(MASConstraintMaker *make) {
45-
make.edges.equalTo(self.view);
45+
make.edges.equalTo(self.view).insets(UIEdgeInsetsMake(0, 0, 49, 0));
4646
}];
4747
icarousel;
4848
});
@@ -103,6 +103,8 @@ - (void)setMyBoardTLs:(NSArray<EABoardTaskList *> *)myBoardTLs{
103103
[_myCarousel reloadData];
104104
[self configPageControl];
105105
[self configNavItem];
106+
self.view.backgroundColor = _myBoardTLs.count == 1? kColorTableBG: kColorTableSectionBg;
107+
self.myPageControl.hidden = (_myBoardTLs.count == 1);
106108
}else{
107109
[(EABoardTaskListView *)_myCarousel.currentItemView refresh];
108110
}
@@ -126,8 +128,8 @@ - (void)configPageControl{
126128
[self.view addSubview:pageControl];
127129
[pageControl mas_makeConstraints:^(MASConstraintMaker *make) {
128130
make.left.right.equalTo(self.view);
129-
make.height.mas_equalTo(25);
130-
make.bottom.offset(-25);
131+
make.height.mas_equalTo(10);
132+
make.bottom.offset(-(50 - 10)/ 2);
131133
}];
132134
pageControl;
133135
});
Loading
Loading
Loading
Loading
817 Bytes
Loading
1.17 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Coding_iOS/Views/TableListView/EABoardTaskListBlankView.xib

Lines changed: 13 additions & 0 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="14088"/>
9+
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
910
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
1011
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1112
</dependencies>
@@ -225,6 +226,13 @@
225226
<color key="titleColor" red="0.12549019610000001" green="0.1764705882" blue="0.25098039220000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
226227
</state>
227228
</button>
229+
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="taskboard_blankpage.png" translatesAutoresizingMaskIntoConstraints="NO" id="KIs-tE-kGI">
230+
<rect key="frame" x="107" y="102" width="160" height="160"/>
231+
<constraints>
232+
<constraint firstAttribute="width" secondItem="KIs-tE-kGI" secondAttribute="height" id="3L0-9Y-05X"/>
233+
<constraint firstAttribute="width" constant="160" id="dWp-22-dnz"/>
234+
</constraints>
235+
</imageView>
228236
</subviews>
229237
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
230238
<constraints>
@@ -235,7 +243,9 @@
235243
<constraint firstItem="YPm-Sk-SaL" firstAttribute="centerX" secondItem="v0f-w3-SBd" secondAttribute="centerX" id="Niu-SP-G3h"/>
236244
<constraint firstItem="eTU-T7-ZrU" firstAttribute="trailing" secondItem="Arl-eI-S0s" secondAttribute="trailing" id="dTk-fR-E0o"/>
237245
<constraint firstItem="2nf-Fh-S3x" firstAttribute="centerX" secondItem="v0f-w3-SBd" secondAttribute="centerX" id="ggU-gj-NOM"/>
246+
<constraint firstItem="KIs-tE-kGI" firstAttribute="centerX" secondItem="v0f-w3-SBd" secondAttribute="centerX" id="hue-vF-9Ed"/>
238247
<constraint firstItem="YPm-Sk-SaL" firstAttribute="top" secondItem="2nf-Fh-S3x" secondAttribute="bottom" constant="10" id="nTY-06-ouK"/>
248+
<constraint firstItem="Arl-eI-S0s" firstAttribute="top" secondItem="KIs-tE-kGI" secondAttribute="bottom" constant="25" id="wCI-dN-89E"/>
239249
</constraints>
240250
<viewLayoutGuide key="safeArea" id="eTU-T7-ZrU"/>
241251
<connections>
@@ -245,4 +255,7 @@
245255
<point key="canvasLocation" x="-213.5" y="-103.5"/>
246256
</view>
247257
</objects>
258+
<resources>
259+
<image name="taskboard_blankpage.png" width="160" height="160"/>
260+
</resources>
248261
</document>

0 commit comments

Comments
 (0)