Skip to content

Commit

Permalink
added LaunchScreen to support iPhone 6 full resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Mar 6, 2015
1 parent 344969b commit 3e35e14
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/MGSwipeDemo/MGSwipeDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
1130ABC61AAA6B3400BEB4D3 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1130ABC51AAA6B3400BEB4D3 /* LaunchScreen.xib */; };
113D5E101996AD7400066AE3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113D5E0F1996AD7400066AE3 /* Foundation.framework */; };
113D5E121996AD7400066AE3 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113D5E111996AD7400066AE3 /* CoreGraphics.framework */; };
113D5E141996AD7400066AE3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113D5E131996AD7400066AE3 /* UIKit.framework */; };
Expand All @@ -27,6 +28,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1130ABC51AAA6B3400BEB4D3 /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = "<group>"; };
113D5E0C1996AD7400066AE3 /* MGSwipeDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MGSwipeDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
113D5E0F1996AD7400066AE3 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
113D5E111996AD7400066AE3 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -111,6 +113,7 @@
11D0A01B1996B2BE008D8809 /* autolayout_test.storyboard */,
113D5E211996AD7400066AE3 /* Images.xcassets */,
113D5E161996AD7400066AE3 /* Supporting Files */,
1130ABC51AAA6B3400BEB4D3 /* LaunchScreen.xib */,
);
path = MGSwipeDemo;
sourceTree = "<group>";
Expand Down Expand Up @@ -207,6 +210,7 @@
11D0A01A1996AFF1008D8809 /* [email protected] in Resources */,
1146855619D4609F00D28118 /* background.jpg in Resources */,
113D5E221996AD7400066AE3 /* Images.xcassets in Resources */,
1130ABC61AAA6B3400BEB4D3 /* LaunchScreen.xib in Resources */,
11D0A0181996AFF1008D8809 /* [email protected] in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
44 changes: 44 additions & 0 deletions demo/MGSwipeDemo/MGSwipeDemo/LaunchScreen.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 Imanol Fernandez Gorostizaga. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
<variation key="widthClass=compact">
<fontDescription key="fontDescription" type="system" pointSize="11"/>
</variation>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MGSwipeDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="Kid-kn-2rF"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="404" y="445"/>
</view>
</objects>
</document>

0 comments on commit 3e35e14

Please sign in to comment.