Skip to content

Commit

Permalink
Fix title of header
Browse files Browse the repository at this point in the history
  • Loading branch information
xai3 committed Jan 13, 2017
1 parent 45a21aa commit 7b3d57e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
53 changes: 23 additions & 30 deletions ShoyuExample/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9059" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="t4g-cc-eZI">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1108" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="t4g-cc-eZI">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scene sceneID="X6f-Ag-m8R">
<objects>
<navigationController id="t4g-cc-eZI" sceneMemberID="viewController">
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="dgp-6x-pgQ">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</navigationBar>
<connections>
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="8au-Md-3U0"/>
Expand All @@ -32,27 +34,24 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kke-SK-eiq">
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kke-SK-eiq">
<rect key="frame" x="141" y="72" width="38" height="30"/>
<animations/>
<state key="normal" title="Table"/>
<connections>
<segue destination="6Ld-bI-o9t" kind="show" id="asK-hL-FOY"/>
</connections>
</button>
</subviews>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="kke-SK-eiq" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="bIC-NQ-1Sb"/>
<constraint firstItem="kke-SK-eiq" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="8" id="fda-kS-IVw"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="I97-H6-Kz6"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
Expand All @@ -67,63 +66,59 @@
<viewControllerLayoutGuide type="bottom" id="vco-mC-5Z5"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="7zB-mc-8Sg">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="62" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="WCw-e7-drD" customClass="TableView" customModule="ShoyuExample" customModuleProvider="target">
<tableView clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="62" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="WCw-e7-drD" customClass="TableView" customModule="ShoyuExample" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="DefaultTableViewCell" rowHeight="62" id="bPZ-RK-Mn4" customClass="DefaultTableViewCell" customModule="ShoyuExample" customModuleProvider="target">
<rect key="frame" x="0.0" y="92" width="320" height="62"/>
<rect key="frame" x="0.0" y="28" width="320" height="62"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="bPZ-RK-Mn4" id="f10-dc-rCW">
<rect key="frame" x="0.0" y="0.0" width="320" height="61"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D9W-bY-JyK">
<rect key="frame" x="15" y="20" width="42" height="21"/>
<animations/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<animations/>
<constraints>
<constraint firstItem="D9W-bY-JyK" firstAttribute="leading" secondItem="f10-dc-rCW" secondAttribute="leading" constant="15" id="Ibt-TQ-2IV"/>
<constraint firstItem="D9W-bY-JyK" firstAttribute="centerY" secondItem="f10-dc-rCW" secondAttribute="centerY" id="sOg-YT-ItL"/>
</constraints>
</tableViewCellContentView>
<animations/>
<connections>
<outlet property="nameLabel" destination="D9W-bY-JyK" id="N6K-Eu-iGB"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="Header" rowHeight="38" id="RHC-X7-OVv" customClass="HeaderTableViewCell" customModule="ShoyuExample" customModuleProvider="target">
<rect key="frame" x="0.0" y="154" width="320" height="38"/>
<rect key="frame" x="0.0" y="90" width="320" height="38"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="RHC-X7-OVv" id="oZh-UC-GT0">
<rect key="frame" x="0.0" y="0.0" width="320" height="37"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Header" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E4v-Jc-jMZ">
<rect key="frame" x="15" y="9" width="56" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Big Hero 6" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E4v-Jc-jMZ">
<rect key="frame" x="15" y="8" width="81" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="0.66666666666666663" green="0.66666666666666663" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="E4v-Jc-jMZ" firstAttribute="leading" secondItem="oZh-UC-GT0" secondAttribute="leading" constant="15" id="Kds-2R-5Dh"/>
<constraint firstItem="E4v-Jc-jMZ" firstAttribute="centerY" secondItem="oZh-UC-GT0" secondAttribute="centerY" id="y24-CI-STt"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="Footer" rowHeight="38" id="QEu-1h-kwL" customClass="FooterTableViewCell" customModule="ShoyuExample" customModuleProvider="target">
<rect key="frame" x="0.0" y="192" width="320" height="38"/>
<rect key="frame" x="0.0" y="128" width="320" height="38"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="QEu-1h-kwL" id="YkE-Xg-GVk">
<rect key="frame" x="0.0" y="0.0" width="320" height="37"/>
Expand All @@ -132,11 +127,11 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Footer" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8yd-ps-hcm">
<rect key="frame" x="15" y="9" width="56" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="0.66666666666666663" green="0.66666666666666663" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="8yd-ps-hcm" firstAttribute="centerY" secondItem="YkE-Xg-GVk" secondAttribute="centerY" id="Gpv-wI-AYW"/>
<constraint firstItem="8yd-ps-hcm" firstAttribute="leading" secondItem="YkE-Xg-GVk" secondAttribute="leading" constant="15" id="hYB-mv-cPw"/>
Expand All @@ -146,16 +141,14 @@
</prototypes>
</tableView>
</subviews>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="WCw-e7-drD" firstAttribute="top" secondItem="7zB-mc-8Sg" secondAttribute="top" id="A0G-PX-K7E"/>
<constraint firstItem="vco-mC-5Z5" firstAttribute="top" secondItem="WCw-e7-drD" secondAttribute="bottom" id="EPR-Qz-3XT"/>
<constraint firstAttribute="trailing" secondItem="WCw-e7-drD" secondAttribute="trailing" id="dOT-iP-n5p"/>
<constraint firstItem="WCw-e7-drD" firstAttribute="leading" secondItem="7zB-mc-8Sg" secondAttribute="leading" id="oJi-5c-Z6N"/>
</constraints>
</view>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
<connections>
<outlet property="tableView" destination="WCw-e7-drD" id="GWp-TD-Qip"/>
</connections>
Expand Down
1 change: 0 additions & 1 deletion ShoyuExample/TableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class TableViewController: UIViewController {
tableView.source = Source().createSection { (section: Section<HeaderTableViewCell, FooterTableViewCell>) in
section.createHeader { header in
header.reuseIdentifier = "Header"
header.title = "Big Hero 6"
header.height = 32
header.configureView = { headerCell, _ in
headerCell.contentView.backgroundColor = UIColor.blue
Expand Down

0 comments on commit 7b3d57e

Please sign in to comment.