Skip to content

Commit

Permalink
添加了说明书
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangRunHua committed Mar 16, 2019
1 parent 5f9dd73 commit 2916a29
Show file tree
Hide file tree
Showing 8 changed files with 521 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added WhatsPlay/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions WhatsPlay/WhatsPlay.xcodeproj/project.pbxproj
Expand Up @@ -11,6 +11,7 @@
04501119223A301200556950 /* TableViewData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04501118223A301200556950 /* TableViewData.swift */; };
0450111D223A3B2100556950 /* BookTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0450111B223A3B2100556950 /* BookTableViewCell.xib */; };
0455F32A223B4DAD00946C1F /* 4.png in Resources */ = {isa = PBXBuildFile; fileRef = 0455F329223B4DAD00946C1F /* 4.png */; };
046C8F85223CD1F600F638C2 /* iOS App界面制作 — 表格视图的高级特性.md in Resources */ = {isa = PBXBuildFile; fileRef = 046C8F84223CD1F600F638C2 /* iOS App界面制作 — 表格视图的高级特性.md */; };
04C894A2223929510015B060 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C894A1223929510015B060 /* AppDelegate.swift */; };
04C894A7223929510015B060 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04C894A5223929510015B060 /* Main.storyboard */; };
04C894A9223929530015B060 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 04C894A8223929530015B060 /* Assets.xcassets */; };
Expand All @@ -28,6 +29,7 @@
04501118223A301200556950 /* TableViewData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewData.swift; sourceTree = "<group>"; };
0450111B223A3B2100556950 /* BookTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = BookTableViewCell.xib; sourceTree = "<group>"; };
0455F329223B4DAD00946C1F /* 4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 4.png; sourceTree = "<group>"; };
046C8F84223CD1F600F638C2 /* iOS App界面制作 — 表格视图的高级特性.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = "iOS App界面制作 — 表格视图的高级特性.md"; sourceTree = "<group>"; };
04C8949E223929510015B060 /* WhatsPlay.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WhatsPlay.app; sourceTree = BUILT_PRODUCTS_DIR; };
04C894A1223929510015B060 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
04C894A6223929510015B060 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
Expand Down Expand Up @@ -104,6 +106,7 @@
04C89495223929510015B060 = {
isa = PBXGroup;
children = (
046C8F84223CD1F600F638C2 /* iOS App界面制作 — 表格视图的高级特性.md */,
04C894A0223929510015B060 /* WhatsPlay */,
04C8949F223929510015B060 /* Products */,
);
Expand Down Expand Up @@ -192,6 +195,7 @@
0455F32A223B4DAD00946C1F /* 4.png in Resources */,
0450111D223A3B2100556950 /* BookTableViewCell.xib in Resources */,
04C894AC223929530015B060 /* LaunchScreen.storyboard in Resources */,
046C8F85223CD1F600F638C2 /* iOS App界面制作 — 表格视图的高级特性.md in Resources */,
04E55213223A7729008F8F08 /* FeaturedTableViewCell.xib in Resources */,
04C894A9223929530015B060 /* Assets.xcassets in Resources */,
04C894A7223929510015B060 /* Main.storyboard in Resources */,
Expand Down
Binary file added WhatsPlay/WhatsPlay/.DS_Store
Binary file not shown.
Expand Up @@ -10,9 +10,9 @@ import UIKit

class imageViewCollectionViewCell: UICollectionViewCell {

@IBOutlet weak var imageView: UIImageView!
@IBOutlet weak var generalLabel: UILabel!
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var subTitleLabel: UILabel!
@IBOutlet weak var imageView: UIImageView! // 背景照片
@IBOutlet weak var generalLabel: UILabel! // 类别标签
@IBOutlet weak var titleLabel: UILabel! // 主标题
@IBOutlet weak var subTitleLabel: UILabel! // 副标题

}
2 changes: 1 addition & 1 deletion WhatsPlay/WhatsPlay/Main/TableViewController.swift
Expand Up @@ -23,7 +23,6 @@ class TableViewController: UITableViewController, UICollectionViewDelegate, UICo
return images.count
}


func numberOfSections(in collectionView: UICollectionView) -> Int {
return 1
}
Expand All @@ -38,6 +37,7 @@ class TableViewController: UITableViewController, UICollectionViewDelegate, UICo

if images[indexPath.row].subTitle == "" {
cell.subTitleLabel.isHidden = true
//cell.subTitleLabel.text = " " // 这样就可以看到美观感
}

cell.layer.cornerRadius = 10.0
Expand Down
2 changes: 1 addition & 1 deletion WhatsPlay/WhatsPlay/Storyboard/BookTableViewCell.xib
Expand Up @@ -69,7 +69,7 @@
<outlet property="subTitle" destination="AP9-kv-Lfe" id="KkZ-fl-qdO"/>
<outlet property="titleLabel" destination="BQJ-nH-c1P" id="TZH-U2-Bzj"/>
</connections>
<point key="canvasLocation" x="52" y="48.575712143928037"/>
<point key="canvasLocation" x="7" y="21"/>
</tableViewCell>
</objects>
</document>

0 comments on commit 2916a29

Please sign in to comment.