Skip to content
This repository was archived by the owner on Jun 17, 2018. It is now read-only.

Commit fc73dbe

Browse files
committed
Set default device size for storyboard
1 parent c085274 commit fc73dbe

File tree

5 files changed

+71
-73
lines changed

5 files changed

+71
-73
lines changed

Example/PagingMenuControllerDemo/Base.lproj/LaunchScreen.xib

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
55
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
6+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
67
</dependencies>
78
<objects>
89
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
@@ -12,19 +13,17 @@
1213
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1314
<subviews>
1415
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 kitasuke. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
15-
<rect key="frame" x="20" y="439" width="441" height="21"/>
1616
<fontDescription key="fontDescription" type="system" pointSize="17"/>
1717
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
1818
<nil key="highlightedColor"/>
1919
</label>
2020
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="PagingMenuControllerDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
21-
<rect key="frame" x="20" y="140" width="441" height="43"/>
2221
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
2322
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
2423
<nil key="highlightedColor"/>
2524
</label>
2625
</subviews>
27-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
26+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2827
<constraints>
2928
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
3029
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>

Example/PagingMenuControllerDemo/Base.lproj/Main.storyboard

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +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="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="fyw-V8-IQb">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="fyw-V8-IQb">
33
<dependencies>
4-
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
5+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
66
</dependencies>
77
<scenes>
88
<!--Navigation Controller-->
@@ -26,24 +26,24 @@
2626
<objects>
2727
<tableViewController id="DXY-Kt-kZu" customClass="RootViewController" customModule="PagingMenuControllerDemo" customModuleProvider="target" sceneMemberID="viewController">
2828
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="HGl-7V-DeO">
29-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
29+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
3030
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
31-
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
31+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3232
<sections>
3333
<tableViewSection headerTitle="MenuView + MenuController" id="7wX-VV-3Zd">
3434
<cells>
3535
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="pl6-Bq-MYg" style="IBUITableViewCellStyleDefault" id="luK-km-5U5">
36-
<rect key="frame" x="0.0" y="92" width="600" height="44"/>
36+
<rect key="frame" x="0.0" y="92" width="375" height="44"/>
3737
<autoresizingMask key="autoresizingMask"/>
3838
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="luK-km-5U5" id="MFU-QE-Tg9">
39-
<rect key="frame" x="0.0" y="0.0" width="567" height="43.5"/>
39+
<frame key="frameInset" width="342" height="43.5"/>
4040
<autoresizingMask key="autoresizingMask"/>
4141
<subviews>
4242
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Standard + MultilineText" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="pl6-Bq-MYg">
43-
<rect key="frame" x="15" y="0.0" width="550" height="43.5"/>
43+
<frame key="frameInset" minX="15" width="325" height="43.5"/>
4444
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
4545
<fontDescription key="fontDescription" type="system" pointSize="16"/>
46-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
46+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
4747
<nil key="highlightedColor"/>
4848
</label>
4949
</subviews>
@@ -53,17 +53,17 @@
5353
</connections>
5454
</tableViewCell>
5555
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="f6l-A0-21K" style="IBUITableViewCellStyleDefault" id="0Ey-iP-16u">
56-
<rect key="frame" x="0.0" y="136" width="600" height="44"/>
56+
<rect key="frame" x="0.0" y="136" width="375" height="44"/>
5757
<autoresizingMask key="autoresizingMask"/>
5858
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="0Ey-iP-16u" id="jQd-ed-9hv">
59-
<rect key="frame" x="0.0" y="0.0" width="567" height="43.5"/>
59+
<frame key="frameInset" width="342" height="43.5"/>
6060
<autoresizingMask key="autoresizingMask"/>
6161
<subviews>
6262
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="SegmentedControl + MenuControllerSet" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="f6l-A0-21K">
63-
<rect key="frame" x="15" y="0.0" width="550" height="43.5"/>
63+
<frame key="frameInset" minX="15" width="325" height="43.5"/>
6464
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
6565
<fontDescription key="fontDescription" type="system" pointSize="16"/>
66-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
66+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
6767
<nil key="highlightedColor"/>
6868
</label>
6969
</subviews>
@@ -73,17 +73,17 @@
7373
</connections>
7474
</tableViewCell>
7575
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="HGJ-aU-PQG" style="IBUITableViewCellStyleDefault" id="NL5-Rb-a7z">
76-
<rect key="frame" x="0.0" y="180" width="600" height="44"/>
76+
<rect key="frame" x="0.0" y="180" width="375" height="44"/>
7777
<autoresizingMask key="autoresizingMask"/>
7878
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="NL5-Rb-a7z" id="nu2-In-1CQ">
79-
<rect key="frame" x="0.0" y="0.0" width="567" height="43.5"/>
79+
<frame key="frameInset" width="342" height="43.5"/>
8080
<autoresizingMask key="autoresizingMask"/>
8181
<subviews>
8282
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Infinite + LazyLoadingPage" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="HGJ-aU-PQG">
83-
<rect key="frame" x="15" y="0.0" width="550" height="43.5"/>
83+
<frame key="frameInset" minX="15" width="325" height="43.5"/>
8484
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
8585
<fontDescription key="fontDescription" type="system" pointSize="16"/>
86-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
86+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
8787
<nil key="highlightedColor"/>
8888
</label>
8989
</subviews>
@@ -97,17 +97,17 @@
9797
<tableViewSection headerTitle="MenuView" id="NGa-vd-An8">
9898
<cells>
9999
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="k7q-DW-IR9" style="IBUITableViewCellStyleDefault" id="vag-Vp-EYf">
100-
<rect key="frame" x="0.0" y="252" width="600" height="44"/>
100+
<rect key="frame" x="0.0" y="252" width="375" height="44"/>
101101
<autoresizingMask key="autoresizingMask"/>
102102
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="vag-Vp-EYf" id="pEY-Oa-Gb9">
103-
<rect key="frame" x="0.0" y="0.0" width="567" height="43.5"/>
103+
<frame key="frameInset" width="342" height="43.5"/>
104104
<autoresizingMask key="autoresizingMask"/>
105105
<subviews>
106106
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Underline" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="k7q-DW-IR9">
107-
<rect key="frame" x="15" y="0.0" width="550" height="43.5"/>
107+
<frame key="frameInset" minX="15" width="325" height="43.5"/>
108108
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
109109
<fontDescription key="fontDescription" type="system" pointSize="16"/>
110-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
110+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
111111
<nil key="highlightedColor"/>
112112
</label>
113113
</subviews>
@@ -117,17 +117,17 @@
117117
</connections>
118118
</tableViewCell>
119119
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="R3x-3Z-753" style="IBUITableViewCellStyleDefault" id="cLT-OT-IzP">
120-
<rect key="frame" x="0.0" y="296" width="600" height="44"/>
120+
<rect key="frame" x="0.0" y="296" width="375" height="44"/>
121121
<autoresizingMask key="autoresizingMask"/>
122122
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="cLT-OT-IzP" id="aYg-4F-V1T">
123-
<rect key="frame" x="0.0" y="0.0" width="567" height="43.5"/>
123+
<frame key="frameInset" width="342" height="43.5"/>
124124
<autoresizingMask key="autoresizingMask"/>
125125
<subviews>
126126
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="RoundRect" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="R3x-3Z-753">
127-
<rect key="frame" x="15" y="0.0" width="550" height="43.5"/>
127+
<frame key="frameInset" minX="15" width="325" height="43.5"/>
128128
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
129129
<fontDescription key="fontDescription" type="system" pointSize="16"/>
130-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
130+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
131131
<nil key="highlightedColor"/>
132132
</label>
133133
</subviews>
@@ -141,17 +141,17 @@
141141
<tableViewSection headerTitle="MenuController" id="Wdo-Kn-lzK">
142142
<cells>
143143
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="NyD-lp-T4K" style="IBUITableViewCellStyleDefault" id="m6q-p3-dPc">
144-
<rect key="frame" x="0.0" y="368" width="600" height="44"/>
144+
<rect key="frame" x="0.0" y="368" width="375" height="44"/>
145145
<autoresizingMask key="autoresizingMask"/>
146146
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="m6q-p3-dPc" id="Abj-yg-yap">
147-
<rect key="frame" x="0.0" y="0.0" width="567" height="43.5"/>
147+
<frame key="frameInset" width="342" height="43.5"/>
148148
<autoresizingMask key="autoresizingMask"/>
149149
<subviews>
150150
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Standard + DefaultPage" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="NyD-lp-T4K">
151-
<rect key="frame" x="15" y="0.0" width="550" height="43.5"/>
151+
<frame key="frameInset" minX="15" width="325" height="43.5"/>
152152
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
153153
<fontDescription key="fontDescription" type="system" pointSize="16"/>
154-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
154+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
155155
<nil key="highlightedColor"/>
156156
</label>
157157
</subviews>

0 commit comments

Comments
 (0)