Skip to content

Commit 574de1a

Browse files
committed
Adds customization message.
1 parent af71f4f commit 574de1a

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

Example/Base.lproj/LaunchScreen.storyboard

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
56
</dependencies>
67
<scenes>
78
<!--View Controller-->
@@ -15,7 +16,6 @@
1516
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
1617
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
1718
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18-
<animations/>
1919
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
2020
</view>
2121
</viewController>

Example/Base.lproj/Main.storyboard

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="dhj-Tp-dZp">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="dhj-Tp-dZp">
33
<dependencies>
44
<deployment identifier="iOS"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
@@ -179,7 +179,7 @@
179179
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xUN-kP-UJi">
180180
<rect key="frame" x="83" y="26" width="42" height="21"/>
181181
<fontDescription key="fontDescription" type="system" pointSize="17"/>
182-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
182+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
183183
<nil key="highlightedColor"/>
184184
</label>
185185
</subviews>
@@ -209,7 +209,7 @@
209209
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="84f-ua-HYC">
210210
<rect key="frame" x="20" y="22" width="42" height="21"/>
211211
<fontDescription key="fontDescription" type="system" pointSize="17"/>
212-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
212+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
213213
<nil key="highlightedColor"/>
214214
</label>
215215
</subviews>
@@ -238,7 +238,7 @@
238238
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vs1-3m-THl">
239239
<rect key="frame" x="20" y="23" width="42" height="21"/>
240240
<fontDescription key="fontDescription" type="system" pointSize="17"/>
241-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
241+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
242242
<nil key="highlightedColor"/>
243243
</label>
244244
</subviews>

Example/CustomizationUsingTableViewDelegate.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ class CustomizationUsingTableViewDelegate : UIViewController {
8787

8888
extension CustomizationUsingTableViewDelegate : UITableViewDelegate {
8989
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
90-
guard let item = dataSource?.itemAtIndexPath(indexPath) else {
90+
91+
// you can also fetch item
92+
guard let item = dataSource?.itemAtIndexPath(indexPath),
93+
// .. or section and customize what you like
94+
_ = dataSource?.sectionAtIndex(indexPath.section)
95+
else {
9196
return 0.0
9297
}
9398

Example/MultipleSectionModelViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class MultipleSectionModelViewController: UIViewController {
6060
]
6161

6262
let dataSource = RxTableViewSectionedReloadDataSource<MultipleSectionModel>()
63+
6364
Observable.just(sections)
6465
.bindTo(tableView.rx_itemsWithDataSource(dataSource))
6566
.addDisposableTo(disposeBag)

0 commit comments

Comments
 (0)