This commit is contained in:
lianxiang
2018-09-20 00:25:25 +08:00
parent 27e27d5d12
commit 309cae4ab2
56 changed files with 1755 additions and 39 deletions
@@ -7,8 +7,12 @@
//
#import <UIKit/UIKit.h>
#import "VersionModel.h"
@interface AppVersionDescCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *VersionDescLabel;
@property (weak, nonatomic) IBOutlet UILabel *versionLabe;
@property (weak, nonatomic) IBOutlet UILabel *tempLabe;
-(void)loadCellDataAt:(NSIndexPath *)indexPath version:(VersionModel *)model;
@end
@@ -17,6 +17,13 @@
}
-(void)loadCellDataAt:(NSIndexPath *)indexPath version:(VersionModel *)model{
self.VersionDescLabel.text = model.content;
self.versionLabe.text = model.title;
self.tempLabe.text = model.createTime;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
@@ -32,13 +32,29 @@
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="V1.0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nNp-3o-Day">
<rect key="frame" x="7" y="11" width="27.5" height="20"/>
<fontDescription key="fontDescription" name="PingFangSC-Semibold" family="PingFang SC" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2018" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gq7-SB-R78">
<rect key="frame" x="330" y="11" width="29" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="v31-x8-IlY" firstAttribute="top" secondItem="JXV-Zf-Ztb" secondAttribute="bottom" constant="15" id="26g-Zf-2QA"/>
<constraint firstItem="nNp-3o-Day" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="11" id="2jZ-Ky-FFC"/>
<constraint firstAttribute="trailing" secondItem="gq7-SB-R78" secondAttribute="trailing" constant="16" id="64C-Qu-X4e"/>
<constraint firstAttribute="trailing" secondItem="v31-x8-IlY" secondAttribute="trailing" constant="7" id="Ama-ed-0mY"/>
<constraint firstItem="v31-x8-IlY" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="7" id="Fax-Sh-1aI"/>
<constraint firstItem="nNp-3o-Day" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="7" id="ddT-Gk-lT5"/>
<constraint firstAttribute="trailing" secondItem="JXV-Zf-Ztb" secondAttribute="trailing" id="e2a-v1-3mo"/>
<constraint firstItem="JXV-Zf-Ztb" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="40" id="oxm-rv-lzY"/>
<constraint firstItem="gq7-SB-R78" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="11" id="u1e-1d-cgh"/>
<constraint firstItem="JXV-Zf-Ztb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="uZy-ia-fM8"/>
</constraints>
</tableViewCellContentView>
@@ -46,6 +62,8 @@
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
<connections>
<outlet property="VersionDescLabel" destination="v31-x8-IlY" id="Rfo-xt-BWD"/>
<outlet property="tempLabe" destination="gq7-SB-R78" id="F3e-f2-IHK"/>
<outlet property="versionLabe" destination="nNp-3o-Day" id="mjy-8A-vA1"/>
</connections>
<point key="canvasLocation" x="33.5" y="87"/>
</tableViewCell>
@@ -40,7 +40,7 @@
<constraint firstItem="xDN-Vh-dG1" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="31" id="hPh-Q6-tZd"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" red="0.51372549020000002" green="0.039215686270000001" blue="0.039215686270000001" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.51372549020000002" green="0.039215686270000001" blue="0.039215686270000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
<point key="canvasLocation" x="34" y="96.5"/>
</tableViewCell>