Selaa lähdekoodia

Add xib based launch screen for iPhone 6

Felix Paul Kühne 10 vuotta sitten
vanhempi
commit
8d25a8988d

+ 46 - 0
Resources/Launch Screen.xib

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6249" systemVersion="14A379a" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6243"/>
+        <capability name="Alignment constraints with different attributes" minToolsVersion="5.1"/>
+        <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
+    </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>
+                <view alpha="0.94999999999999996" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="08f-KG-S7V">
+                    <rect key="frame" x="0.0" y="0.0" width="480" height="64"/>
+                    <subviews>
+                        <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="1000" verticalHuggingPriority="1000" ambiguous="YES" misplaced="YES" image="title.png" translatesAutoresizingMaskIntoConstraints="NO" id="6ra-lX-N7Q">
+                            <rect key="frame" x="221" y="30" width="39" height="19"/>
+                        </imageView>
+                    </subviews>
+                    <color key="backgroundColor" red="1" green="0.51764705879999995" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
+                    <constraints>
+                        <constraint firstItem="6ra-lX-N7Q" firstAttribute="centerX" secondItem="08f-KG-S7V" secondAttribute="centerXWithinMargins" id="JEU-2G-i7o"/>
+                        <constraint firstItem="6ra-lX-N7Q" firstAttribute="top" secondItem="08f-KG-S7V" secondAttribute="top" constant="30" id="ZW3-gs-4ie"/>
+                        <constraint firstItem="6ra-lX-N7Q" firstAttribute="top" secondItem="08f-KG-S7V" secondAttribute="top" constant="30" id="oEO-8O-1RP"/>
+                        <constraint firstAttribute="bottom" secondItem="6ra-lX-N7Q" secondAttribute="bottom" constant="16" id="r1Z-iI-BEE"/>
+                        <constraint firstItem="6ra-lX-N7Q" firstAttribute="top" secondItem="08f-KG-S7V" secondAttribute="top" constant="30" id="ug1-IK-h1Y"/>
+                        <constraint firstAttribute="centerY" secondItem="6ra-lX-N7Q" secondAttribute="centerY" constant="-7.5" id="xQo-xu-rpy"/>
+                    </constraints>
+                </view>
+            </subviews>
+            <color key="backgroundColor" white="0.12" alpha="1" colorSpace="calibratedWhite"/>
+            <constraints>
+                <constraint firstAttribute="centerX" secondItem="08f-KG-S7V" secondAttribute="centerX" id="WWJ-0N-A5h"/>
+            </constraints>
+            <nil key="simulatedStatusBarMetrics"/>
+            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+            <point key="canvasLocation" x="404" y="445"/>
+        </view>
+    </objects>
+    <resources>
+        <image name="title.png" width="39" height="19"/>
+    </resources>
+</document>

+ 2 - 0
Sources/VLC for iOS-Info.plist

@@ -183,6 +183,8 @@
 	</array>
 	<key>UIFileSharingEnabled</key>
 	<true/>
+	<key>UILaunchStoryboardName</key>
+	<string>Launch Screen</string>
 	<key>UIPrerenderedIcon</key>
 	<true/>
 	<key>UIRequiredDeviceCapabilities</key>

+ 4 - 0
VLC for iOS.xcodeproj/project.pbxproj

@@ -124,6 +124,7 @@
 		7D278D6C18E9D5EF0063E109 /* tvShow@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7D278D6818E9D5EF0063E109 /* tvShow@2x.png */; };
 		7D278D6F18E9D6750063E109 /* tvShow@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 7D278D6D18E9D6750063E109 /* tvShow@2x~ipad.png */; };
 		7D278D7018E9D6750063E109 /* tvShow~iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = 7D278D6E18E9D6750063E109 /* tvShow~iPad.png */; };
+		7D27EB9419DEE11900EF0370 /* Launch Screen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7D27EB9319DEE11900EF0370 /* Launch Screen.xib */; };
 		7D2A34A41805CDBA004078AA /* gradient-cell-ios7.png in Resources */ = {isa = PBXBuildFile; fileRef = 7D2A34A21805CDBA004078AA /* gradient-cell-ios7.png */; };
 		7D2A34A51805CDBA004078AA /* gradient-cell-ios7@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7D2A34A31805CDBA004078AA /* gradient-cell-ios7@2x.png */; };
 		7D30F3C2183AB24C00FFC021 /* VLCHTTPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D30F3BD183AB24C00FFC021 /* VLCHTTPConnection.m */; };
@@ -624,6 +625,7 @@
 		7D278D6818E9D5EF0063E109 /* tvShow@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tvShow@2x.png"; sourceTree = "<group>"; };
 		7D278D6D18E9D6750063E109 /* tvShow@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tvShow@2x~ipad.png"; sourceTree = "<group>"; };
 		7D278D6E18E9D6750063E109 /* tvShow~iPad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tvShow~iPad.png"; sourceTree = "<group>"; };
+		7D27EB9319DEE11900EF0370 /* Launch Screen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = "Launch Screen.xib"; path = "Resources/Launch Screen.xib"; sourceTree = SOURCE_ROOT; };
 		7D2A34A21805CDBA004078AA /* gradient-cell-ios7.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "gradient-cell-ios7.png"; sourceTree = "<group>"; };
 		7D2A34A31805CDBA004078AA /* gradient-cell-ios7@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "gradient-cell-ios7@2x.png"; sourceTree = "<group>"; };
 		7D2AEDE017FB775900B5281E /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Localizable.strings; sourceTree = "<group>"; };
@@ -1948,6 +1950,7 @@
 				7DBBF196183AB4300009A339 /* VLCPlaylistTableViewCell.xib */,
 				7DBBF197183AB4300009A339 /* VLCWiFiUploadTableViewCell.xib */,
 				7D711AD918227A490094E4F0 /* GTMOAuth2ViewTouch.xib */,
+				7D27EB9319DEE11900EF0370 /* Launch Screen.xib */,
 			);
 			name = XIBs;
 			path = AspenProject;
@@ -2449,6 +2452,7 @@
 				7D63C1D2187767AF00BD5256 /* fsarrow-volume@2x.png in Resources */,
 				7D6B08C2174A831900A05173 /* vlc-xmas.png in Resources */,
 				7D6B08C3174A831900A05173 /* vlc-xmas@2x.png in Resources */,
+				7D27EB9419DEE11900EF0370 /* Launch Screen.xib in Resources */,
 				7D6B08FC174D773C00A05173 /* Settings.bundle in Resources */,
 				7D5E39CA174FC2F3007DAFA1 /* dropbox-white.png in Resources */,
 				7D5E39CB174FC2F3007DAFA1 /* dropbox-white@2x.png in Resources */,