mirror of
https://github.com/wahyd4/libr-ios.git
synced 2026-08-09 05:06:46 +10:00
#41 为网页增加标签
This commit is contained in:
@@ -740,7 +740,7 @@
|
||||
<constraint firstAttribute="height" constant="1" id="kzC-61-ZzN"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="0.57999999999999996" colorSpace="calibratedRGB"/>
|
||||
<color key="textColor" red="0.91581141089999996" green="0.91581141089999996" blue="0.91581141089999996" alpha="0.93000000000000005" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@@ -788,6 +788,29 @@
|
||||
</mask>
|
||||
</variation>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="网页" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FSE-eo-XOd">
|
||||
<rect key="frame" x="560" y="0.0" width="20" height="20"/>
|
||||
<color key="backgroundColor" red="0.1764705882" green="0.81960784310000001" blue="0.32549019610000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<rect key="contentStretch" x="0.0" y="0.0" width="0.0" height="0.0"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="5Z8-qW-fen"/>
|
||||
<constraint firstAttribute="height" constant="25" id="Hbx-ob-wO2"/>
|
||||
<constraint firstAttribute="width" constant="25" id="aW1-AY-5oY"/>
|
||||
<constraint firstAttribute="width" constant="20" id="h2C-mU-kvP"/>
|
||||
<constraint firstAttribute="width" relation="lessThanOrEqual" constant="20" id="sYU-vd-gCw"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="8"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<size key="shadowOffset" width="0.0" height="0.0"/>
|
||||
<variation key="default">
|
||||
<mask key="constraints">
|
||||
<exclude reference="Hbx-ob-wO2"/>
|
||||
<exclude reference="aW1-AY-5oY"/>
|
||||
<exclude reference="sYU-vd-gCw"/>
|
||||
</mask>
|
||||
</variation>
|
||||
</label>
|
||||
</subviews>
|
||||
<animations/>
|
||||
<color key="backgroundColor" red="0.98852758010040476" green="0.98068212311548097" blue="0.98068212311548097" alpha="1" colorSpace="calibratedRGB"/>
|
||||
@@ -795,23 +818,30 @@
|
||||
<constraint firstAttribute="topMargin" secondItem="OV8-aP-e6c" secondAttribute="top" id="EQF-6f-VdY"/>
|
||||
<constraint firstAttribute="bottomMargin" secondItem="OV8-aP-e6c" secondAttribute="bottom" constant="-6.5" id="KRO-Mx-Fo3"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="OV8-aP-e6c" secondAttribute="trailing" id="OWr-2n-kux"/>
|
||||
<constraint firstItem="FSE-eo-XOd" firstAttribute="leading" secondItem="OHj-QX-4Gg" secondAttribute="leadingMargin" constant="511" id="QCf-gI-Dbo"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="Aay-lS-W1C" secondAttribute="trailing" constant="8" id="TgQ-tf-2AZ"/>
|
||||
<constraint firstItem="FSE-eo-XOd" firstAttribute="top" secondItem="OHj-QX-4Gg" secondAttribute="topMargin" constant="-8" id="XZT-rs-TFY"/>
|
||||
<constraint firstItem="OV8-aP-e6c" firstAttribute="leading" secondItem="OHj-QX-4Gg" secondAttribute="leadingMargin" id="tXC-Mu-19L"/>
|
||||
</constraints>
|
||||
<variation key="default">
|
||||
<mask key="constraints">
|
||||
<exclude reference="TgQ-tf-2AZ"/>
|
||||
<exclude reference="QCf-gI-Dbo"/>
|
||||
</mask>
|
||||
</variation>
|
||||
</tableViewCellContentView>
|
||||
<animations/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="FSE-eo-XOd" secondAttribute="trailing" constant="20" id="h3K-R4-owT"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="avatarImageView" destination="8EG-tD-oQV" id="bWb-7G-nyA"/>
|
||||
<outlet property="cellContentView" destination="OV8-aP-e6c" id="vJ7-l4-rk8"/>
|
||||
<outlet property="likeNumLabel" destination="NP2-uk-kl7" id="FCt-kd-UfG"/>
|
||||
<outlet property="nameButton" destination="BQB-qL-VEd" id="qt8-b9-3Dh"/>
|
||||
<outlet property="nameLabel" destination="rFX-WH-9eA" id="aNo-Jz-pUk"/>
|
||||
<outlet property="pageMarkLabel" destination="FSE-eo-XOd" id="cNO-5V-djz"/>
|
||||
<outlet property="readNumLabel" destination="KE5-Gm-Yso" id="qu8-qa-NC6"/>
|
||||
<outlet property="shareNameLabel" destination="zPJ-0b-Ydb" id="EKJ-xV-SPj"/>
|
||||
<outlet property="summary" destination="pDg-LV-HXs" id="8hB-T1-ip5"/>
|
||||
|
||||
@@ -27,7 +27,7 @@ class CustomTableCell: UITableViewCell {
|
||||
@IBOutlet weak var summary: UILabel!
|
||||
@IBOutlet weak var avatarImageView: UIImageView!
|
||||
@IBOutlet weak var nameButton: UIButton!
|
||||
|
||||
@IBOutlet weak var pageMarkLabel: UILabel!
|
||||
|
||||
var delegate: StoryTableNavigationDelegate?
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import SwiftyJSON
|
||||
class StorysTableViewController: UITableViewController {
|
||||
|
||||
@IBOutlet weak var titleLabel: UILabel!
|
||||
|
||||
|
||||
private var timer: NSTimer!
|
||||
private var firstTime = true
|
||||
private var postsLoader = PostsLoader(.Default)
|
||||
@@ -96,6 +96,7 @@ class StorysTableViewController: UITableViewController {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
|
||||
|
||||
@@ -256,6 +257,15 @@ class StorysTableViewController: UITableViewController {
|
||||
cell.thumbnilImageView.layer.borderWidth = 1
|
||||
cell.thumbnilImageView.layer.borderColor = UIColor.clearColor().CGColor
|
||||
|
||||
cell.pageMarkLabel.hidden = true
|
||||
|
||||
if !post.goodFormat {
|
||||
cell.pageMarkLabel.layer.cornerRadius = 10
|
||||
cell.pageMarkLabel.clipsToBounds = true
|
||||
cell.pageMarkLabel.hidden = false
|
||||
}
|
||||
|
||||
|
||||
cell.avatarImageView.sd_setImageWithURL(avatarUrl, placeholderImage: UIImage(named: "default"))
|
||||
cell.avatarImageView.layer.cornerRadius = cell.avatarImageView.frame.size.width / 2
|
||||
cell.avatarImageView.clipsToBounds = true
|
||||
|
||||
Reference in New Issue
Block a user