Skip to content

Commit

Permalink
看板 - 配图
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghengheng committed Apr 28, 2018
1 parent 61d88de commit e040353
Show file tree
Hide file tree
Showing 20 changed files with 83 additions and 4 deletions.
64 changes: 64 additions & 0 deletions Coding_iOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
@"本地阅读")];
}else{
[cell setImageStr:(indexPath.section == 2? (indexPath.row == 0? @"project_item_task":
@"project_item_task"):
@"project_item_taskboard"):
indexPath.section == 3? (indexPath.row == 0? @"project_item_topic":
@"project_item_file"):
indexPath.section == 4? (indexPath.row == 0? @"project_item_code":
Expand Down
8 changes: 5 additions & 3 deletions Coding_iOS/Controllers/TaskBoardsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (void)viewDidLoad {
icarousel.bounceDistance = 0.2;
[self.view addSubview:icarousel];
[icarousel mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
make.edges.equalTo(self.view).insets(UIEdgeInsetsMake(0, 0, 49, 0));
}];
icarousel;
});
Expand Down Expand Up @@ -103,6 +103,8 @@ - (void)setMyBoardTLs:(NSArray<EABoardTaskList *> *)myBoardTLs{
[_myCarousel reloadData];
[self configPageControl];
[self configNavItem];
self.view.backgroundColor = _myBoardTLs.count == 1? kColorTableBG: kColorTableSectionBg;
self.myPageControl.hidden = (_myBoardTLs.count == 1);
}else{
[(EABoardTaskListView *)_myCarousel.currentItemView refresh];
}
Expand All @@ -126,8 +128,8 @@ - (void)configPageControl{
[self.view addSubview:pageControl];
[pageControl mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.view);
make.height.mas_equalTo(25);
make.bottom.offset(-25);
make.height.mas_equalTo(10);
make.bottom.offset(-(50 - 10)/ 2);
}];
pageControl;
});
Expand Down
Binary file modified Coding_iOS/Images/nproject_item/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Coding_iOS/Images/nproject_item/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/nproject_item/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/task/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/task/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/task/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/task/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Coding_iOS/Images/taskboard_page/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Coding_iOS/Views/TableListView/EABoardTaskListBlankView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand Down Expand Up @@ -225,6 +226,13 @@
<color key="titleColor" red="0.12549019610000001" green="0.1764705882" blue="0.25098039220000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
</button>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="taskboard_blankpage.png" translatesAutoresizingMaskIntoConstraints="NO" id="KIs-tE-kGI">
<rect key="frame" x="107" y="102" width="160" height="160"/>
<constraints>
<constraint firstAttribute="width" secondItem="KIs-tE-kGI" secondAttribute="height" id="3L0-9Y-05X"/>
<constraint firstAttribute="width" constant="160" id="dWp-22-dnz"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
Expand All @@ -235,7 +243,9 @@
<constraint firstItem="YPm-Sk-SaL" firstAttribute="centerX" secondItem="v0f-w3-SBd" secondAttribute="centerX" id="Niu-SP-G3h"/>
<constraint firstItem="eTU-T7-ZrU" firstAttribute="trailing" secondItem="Arl-eI-S0s" secondAttribute="trailing" id="dTk-fR-E0o"/>
<constraint firstItem="2nf-Fh-S3x" firstAttribute="centerX" secondItem="v0f-w3-SBd" secondAttribute="centerX" id="ggU-gj-NOM"/>
<constraint firstItem="KIs-tE-kGI" firstAttribute="centerX" secondItem="v0f-w3-SBd" secondAttribute="centerX" id="hue-vF-9Ed"/>
<constraint firstItem="YPm-Sk-SaL" firstAttribute="top" secondItem="2nf-Fh-S3x" secondAttribute="bottom" constant="10" id="nTY-06-ouK"/>
<constraint firstItem="Arl-eI-S0s" firstAttribute="top" secondItem="KIs-tE-kGI" secondAttribute="bottom" constant="25" id="wCI-dN-89E"/>
</constraints>
<viewLayoutGuide key="safeArea" id="eTU-T7-ZrU"/>
<connections>
Expand All @@ -245,4 +255,7 @@
<point key="canvasLocation" x="-213.5" y="-103.5"/>
</view>
</objects>
<resources>
<image name="taskboard_blankpage.png" width="160" height="160"/>
</resources>
</document>

0 comments on commit e040353

Please sign in to comment.