Skip to content
This repository was archived by the owner on Sep 1, 2019. It is now read-only.

Commit 73d3475

Browse files
committed
Fixed scrolling on UITableView for landscape orientation for iPhones
1 parent eaa81b4 commit 73d3475

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

LocalStorage/Local Storage/Main/Base.lproj/Main.storyboard

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="6if-fc-UZA">
3-
<device id="retina4_7" orientation="portrait">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="6if-fc-UZA">
3+
<device id="retina4_7" orientation="landscape">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
7-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
7+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
88
<capability name="Named colors" minToolsVersion="9.0"/>
99
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
1010
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@@ -16,7 +16,7 @@
1616
<navigationController id="g7C-pp-JrT" userLabel="Types Tab" sceneMemberID="viewController">
1717
<tabBarItem key="tabBarItem" title="Types" image="TabBarTypes" id="8bY-IJ-lUs"/>
1818
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translucent="NO" largeTitles="YES" id="Gjg-Lv-2xk">
19-
<rect key="frame" x="0.0" y="20" width="375" height="96"/>
19+
<rect key="frame" x="0.0" y="0.0" width="667" height="32"/>
2020
<autoresizingMask key="autoresizingMask"/>
2121
</navigationBar>
2222
<connections>
@@ -33,7 +33,7 @@
3333
<navigationController id="Iwn-KU-yZO" userLabel="Overview Tab" sceneMemberID="viewController">
3434
<tabBarItem key="tabBarItem" title="Overview" image="TabBarOverview" id="d6g-yU-hUl"/>
3535
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translucent="NO" largeTitles="YES" id="fvB-2n-gNw">
36-
<rect key="frame" x="0.0" y="20" width="375" height="96"/>
36+
<rect key="frame" x="0.0" y="0.0" width="667" height="32"/>
3737
<autoresizingMask key="autoresizingMask"/>
3838
</navigationBar>
3939
<connections>
@@ -49,11 +49,11 @@
4949
<objects>
5050
<viewController storyboardIdentifier="OverviewViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="aT3-lK-HbQ" customClass="OverviewViewController" customModule="localstorage" customModuleProvider="target" sceneMemberID="viewController">
5151
<view key="view" contentMode="scaleToFill" id="VYv-tV-cUt" userLabel="Main View">
52-
<rect key="frame" x="0.0" y="0.0" width="375" height="735"/>
52+
<rect key="frame" x="0.0" y="0.0" width="375" height="764"/>
5353
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
5454
<subviews>
5555
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bGX-gR-Xqv">
56-
<rect key="frame" x="0.0" y="0.0" width="375" height="731"/>
56+
<rect key="frame" x="0.0" y="0.0" width="375" height="760"/>
5757
<subviews>
5858
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="z9r-Hv-j8b" userLabel="Info Items Stack View">
5959
<rect key="frame" x="0.0" y="0.0" width="375" height="648"/>
@@ -392,7 +392,7 @@
392392
<navigationItem key="navigationItem" title="Overview" id="v7z-Ip-ToZ">
393393
<barButtonItem key="rightBarButtonItem" title="Settings" style="done" id="Tbt-Ar-Wfe">
394394
<button key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="ZWk-m7-CkV">
395-
<rect key="frame" x="276" y="5" width="83" height="34"/>
395+
<rect key="frame" x="276" y="0.0" width="83" height="32"/>
396396
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
397397
<fontDescription key="fontDescription" type="system" pointSize="18"/>
398398
<state key="normal" title="Settings"/>
@@ -441,35 +441,37 @@
441441
<objects>
442442
<viewController storyboardIdentifier="TypesViewController" title="Types" useStoryboardIdentifierAsRestorationIdentifier="YES" id="mYf-Nf-c82" customClass="TypesViewController" customModule="localstorage" customModuleProvider="target" sceneMemberID="viewController">
443443
<view key="view" contentMode="scaleToFill" id="MHt-2w-SHe">
444-
<rect key="frame" x="0.0" y="0.0" width="375" height="502"/>
444+
<rect key="frame" x="0.0" y="0.0" width="667" height="311"/>
445445
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
446446
<subviews>
447447
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gQo-Ya-vaB" customClass="HorizontalBarChartView" customModule="Charts">
448-
<rect key="frame" x="0.0" y="5" width="356" height="100"/>
448+
<rect key="frame" x="0.0" y="5" width="648" height="100"/>
449449
<constraints>
450450
<constraint firstAttribute="height" constant="100" id="DPZ-bq-Cbl"/>
451451
</constraints>
452452
</view>
453453
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g7e-TP-KdR">
454-
<rect key="frame" x="160.5" y="110" width="53" height="30"/>
454+
<rect key="frame" x="307" y="110" width="53" height="30"/>
455455
<state key="normal" title="Refresh"/>
456456
<connections>
457457
<action selector="onRefreshButton" destination="mYf-Nf-c82" eventType="touchUpInside" id="TG1-hF-7dy"/>
458458
</connections>
459459
</button>
460-
<tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="2B7-dx-bAy">
461-
<rect key="frame" x="16" y="148" width="343" height="307"/>
460+
<tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="2B7-dx-bAy">
461+
<rect key="frame" x="16" y="148" width="635" height="143"/>
462462
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
463463
<constraints>
464-
<constraint firstAttribute="height" constant="307" id="bVn-1K-gRq"/>
464+
<constraint firstAttribute="height" constant="307" id="bVn-1K-gRq">
465+
<variation key="heightClass=compact-widthClass=compact" constant="143"/>
466+
</constraint>
465467
</constraints>
466468
<inset key="separatorInset" minX="5" minY="0.0" maxX="5" maxY="0.0"/>
467469
<prototypes>
468470
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="default" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="protoCell" textLabel="SrX-cY-Gva" detailTextLabel="4Du-rf-Hl6" style="IBUITableViewCellStyleValue1" id="72M-Ns-GUM">
469-
<rect key="frame" x="0.0" y="28" width="343" height="44"/>
471+
<rect key="frame" x="0.0" y="28" width="635" height="44"/>
470472
<autoresizingMask key="autoresizingMask"/>
471473
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="72M-Ns-GUM" id="pbY-2s-iMU">
472-
<rect key="frame" x="0.0" y="0.0" width="310" height="43.5"/>
474+
<rect key="frame" x="0.0" y="0.0" width="602" height="43.5"/>
473475
<autoresizingMask key="autoresizingMask"/>
474476
<subviews>
475477
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="SrX-cY-Gva">
@@ -480,7 +482,7 @@
480482
<nil key="highlightedColor"/>
481483
</label>
482484
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Detail" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="4Du-rf-Hl6">
483-
<rect key="frame" x="264" y="12" width="44" height="20.5"/>
485+
<rect key="frame" x="556" y="12" width="44" height="20.5"/>
484486
<autoresizingMask key="autoresizingMask"/>
485487
<fontDescription key="fontDescription" type="system" pointSize="17"/>
486488
<color key="textColor" name="ColorFontGray"/>
@@ -514,7 +516,7 @@
514516
<navigationItem key="navigationItem" title="Types" id="qIY-eg-uek">
515517
<barButtonItem key="rightBarButtonItem" title="Settings" style="done" id="bTi-9m-hWe">
516518
<button key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="XzV-76-K0f">
517-
<rect key="frame" x="276" y="5" width="83" height="34"/>
519+
<rect key="frame" x="564" y="0.0" width="83" height="32"/>
518520
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
519521
<fontDescription key="fontDescription" type="system" pointSize="18"/>
520522
<state key="normal" title="Settings"/>
@@ -533,25 +535,25 @@
533535
</viewController>
534536
<placeholder placeholderIdentifier="IBFirstResponder" id="ieC-px-vSr" userLabel="First Responder" sceneMemberID="firstResponder"/>
535537
</objects>
536-
<point key="canvasLocation" x="977" y="1015"/>
538+
<point key="canvasLocation" x="976.46176911544239" y="1013.6"/>
537539
</scene>
538540
<!--Details-->
539541
<scene sceneID="Pzj-OZ-ldf">
540542
<objects>
541543
<viewController storyboardIdentifier="TypeDetailViewController" title="Details" useStoryboardIdentifierAsRestorationIdentifier="YES" id="r6q-dk-t3b" customClass="TypeDetailViewController" customModule="localstorage" customModuleProvider="target" sceneMemberID="viewController">
542544
<view key="view" contentMode="scaleToFill" id="WnC-Yy-tD5">
543-
<rect key="frame" x="0.0" y="0.0" width="375" height="502"/>
545+
<rect key="frame" x="0.0" y="0.0" width="667" height="311"/>
544546
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
545547
<subviews>
546548
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="dQj-JT-CIw">
547-
<rect key="frame" x="16" y="0.0" width="343" height="502"/>
549+
<rect key="frame" x="16" y="0.0" width="635" height="311"/>
548550
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
549551
<prototypes>
550552
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="blue" accessoryType="detailButton" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="protoCell" textLabel="gVz-tx-pUc" detailTextLabel="rL8-pU-a4i" style="IBUITableViewCellStyleSubtitle" id="6f6-3c-1xk">
551-
<rect key="frame" x="0.0" y="28" width="343" height="44"/>
553+
<rect key="frame" x="0.0" y="28" width="635" height="44"/>
552554
<autoresizingMask key="autoresizingMask"/>
553555
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="6f6-3c-1xk" id="Fxp-iZ-COP">
554-
<rect key="frame" x="0.0" y="0.0" width="296" height="43.5"/>
556+
<rect key="frame" x="0.0" y="0.0" width="588" height="43.5"/>
555557
<autoresizingMask key="autoresizingMask"/>
556558
<subviews>
557559
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="gVz-tx-pUc">
@@ -622,7 +624,7 @@
622624
<navigationController id="H8t-Zs-yTq" userLabel="Files Tab" sceneMemberID="viewController">
623625
<tabBarItem key="tabBarItem" title="Files" image="TabBarFiles" id="EQw-GB-rig"/>
624626
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translucent="NO" largeTitles="YES" id="iVt-Ri-6xv">
625-
<rect key="frame" x="0.0" y="20" width="375" height="96"/>
627+
<rect key="frame" x="0.0" y="0.0" width="667" height="32"/>
626628
<autoresizingMask key="autoresizingMask"/>
627629
</navigationBar>
628630
<connections>
@@ -638,11 +640,11 @@
638640
<objects>
639641
<viewController storyboardIdentifier="FilesViewController" title="Files" useStoryboardIdentifierAsRestorationIdentifier="YES" id="qRW-e8-x5y" customClass="FilesViewController" customModule="localstorage" customModuleProvider="target" sceneMemberID="viewController">
640642
<view key="view" contentMode="scaleToFill" id="DQH-oC-dmw">
641-
<rect key="frame" x="0.0" y="0.0" width="375" height="502"/>
643+
<rect key="frame" x="0.0" y="0.0" width="667" height="311"/>
642644
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
643645
<subviews>
644646
<collectionView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" delaysContentTouches="NO" canCancelContentTouches="NO" bouncesZoom="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="dpF-Yf-bVY">
645-
<rect key="frame" x="10" y="10" width="355" height="422"/>
647+
<rect key="frame" x="10" y="10" width="647" height="231"/>
646648
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
647649
<collectionViewLayout key="collectionViewLayout" id="FCx-fi-Guz" userLabel="Files Collection View Layout" customClass="FilesCollectionViewLayout" customModule="localstorage" customModuleProvider="target"/>
648650
<cells>
@@ -661,7 +663,7 @@
661663
</connections>
662664
</collectionView>
663665
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OZE-1P-g9P">
664-
<rect key="frame" x="20" y="452" width="335" height="30"/>
666+
<rect key="frame" x="20" y="261" width="627" height="30"/>
665667
<state key="normal" title="Refresh"/>
666668
<connections>
667669
<action selector="onRefreshButton" destination="qRW-e8-x5y" eventType="touchUpInside" id="f3S-hJ-UiI"/>
@@ -682,7 +684,7 @@
682684
<navigationItem key="navigationItem" title="Files" id="IEI-jh-wmx">
683685
<barButtonItem key="rightBarButtonItem" title="Settings" style="done" id="GgS-Gs-8bm">
684686
<button key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="ukw-xV-MIa">
685-
<rect key="frame" x="276" y="5" width="83" height="34"/>
687+
<rect key="frame" x="564" y="0.0" width="83" height="32"/>
686688
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
687689
<fontDescription key="fontDescription" type="system" pointSize="18"/>
688690
<state key="normal" title="Settings"/>

0 commit comments

Comments
 (0)