Skip to content

Commit ff42f0c

Browse files
committed
prepare examples for iOS5
1 parent 45cb2b3 commit ff42f0c

3 files changed

Lines changed: 29 additions & 47 deletions

File tree

SIAlertViewExample/SIAlertViewExample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
GCC_PRECOMPILE_PREFIX_HEADER = YES;
342342
GCC_PREFIX_HEADER = "SIAlertViewExample/SIAlertViewExample-Prefix.pch";
343343
INFOPLIST_FILE = "SIAlertViewExample/SIAlertViewExample-Info.plist";
344-
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
344+
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
345345
PRODUCT_NAME = "$(TARGET_NAME)";
346346
WRAPPER_EXTENSION = app;
347347
};
@@ -353,7 +353,7 @@
353353
GCC_PRECOMPILE_PREFIX_HEADER = YES;
354354
GCC_PREFIX_HEADER = "SIAlertViewExample/SIAlertViewExample-Prefix.pch";
355355
INFOPLIST_FILE = "SIAlertViewExample/SIAlertViewExample-Info.plist";
356-
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
356+
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
357357
PRODUCT_NAME = "$(TARGET_NAME)";
358358
WRAPPER_EXTENSION = app;
359359
};

SIAlertViewExample/SIAlertViewExample/en.lproj/MainStoryboard_iPad.storyboard

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="12D78" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="12D78" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="2">
33
<dependencies>
44
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="2083"/>
55
</dependencies>
@@ -12,10 +12,9 @@
1212
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
1313
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1414
<subviews>
15-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1Wq-T8-JXM">
16-
<constraints>
17-
<constraint firstAttribute="width" constant="73" id="EFL-g6-BIZ"/>
18-
</constraints>
15+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="1Wq-T8-JXM">
16+
<rect key="frame" x="348" y="85" width="73" height="44"/>
17+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
1918
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
2019
<state key="normal" title="Alert1">
2120
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -28,7 +27,9 @@
2827
<action selector="alert1:" destination="2" eventType="touchUpInside" id="LC3-sB-IJf"/>
2928
</connections>
3029
</button>
31-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="A2r-37-Tpd">
30+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="A2r-37-Tpd">
31+
<rect key="frame" x="348" y="136" width="73" height="44"/>
32+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
3233
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
3334
<state key="normal" title="Alert2">
3435
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -41,7 +42,9 @@
4142
<action selector="alert2:" destination="2" eventType="touchUpInside" id="Jz9-db-wNg"/>
4243
</connections>
4344
</button>
44-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CzZ-EZ-2gj">
45+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="CzZ-EZ-2gj">
46+
<rect key="frame" x="348" y="187" width="73" height="44"/>
47+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
4548
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
4649
<state key="normal" title="Alert3">
4750
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -54,7 +57,9 @@
5457
<action selector="alert3:" destination="2" eventType="touchUpInside" id="myx-Mf-aSw"/>
5558
</connections>
5659
</button>
57-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="b8f-lj-NAQ">
60+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="b8f-lj-NAQ">
61+
<rect key="frame" x="348" y="238" width="73" height="44"/>
62+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
5863
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
5964
<state key="normal" title="1+2+3">
6065
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -69,29 +74,14 @@
6974
</button>
7075
</subviews>
7176
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
72-
<constraints>
73-
<constraint firstItem="b8f-lj-NAQ" firstAttribute="trailing" secondItem="CzZ-EZ-2gj" secondAttribute="trailing" type="default" id="1aT-4y-1Lk"/>
74-
<constraint firstItem="b8f-lj-NAQ" firstAttribute="top" secondItem="CzZ-EZ-2gj" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="8A1-XS-wGk"/>
75-
<constraint firstItem="A2r-37-Tpd" firstAttribute="leading" secondItem="CzZ-EZ-2gj" secondAttribute="leading" type="default" id="AIJ-3t-bfs"/>
76-
<constraint firstItem="CzZ-EZ-2gj" firstAttribute="top" secondItem="A2r-37-Tpd" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="CZ3-fd-PsU"/>
77-
<constraint firstItem="A2r-37-Tpd" firstAttribute="top" secondItem="1Wq-T8-JXM" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="Ddr-XZ-ZMk"/>
78-
<constraint firstItem="CzZ-EZ-2gj" firstAttribute="leading" secondItem="b8f-lj-NAQ" secondAttribute="leading" type="default" id="Kn5-IC-7rJ"/>
79-
<constraint firstItem="1Wq-T8-JXM" firstAttribute="top" secondItem="5" secondAttribute="top" constant="85" id="Sky-cU-pRH"/>
80-
<constraint firstItem="A2r-37-Tpd" firstAttribute="centerX" secondItem="5" secondAttribute="centerX" type="default" id="aSv-eJ-VW9"/>
81-
<constraint firstItem="CzZ-EZ-2gj" firstAttribute="trailing" secondItem="A2r-37-Tpd" secondAttribute="trailing" type="default" id="nmN-9Z-Mjb"/>
82-
<constraint firstItem="1Wq-T8-JXM" firstAttribute="trailing" secondItem="A2r-37-Tpd" secondAttribute="trailing" type="default" id="rtA-GO-FOy"/>
83-
<constraint firstItem="1Wq-T8-JXM" firstAttribute="leading" secondItem="A2r-37-Tpd" secondAttribute="leading" type="default" id="shN-qg-dC5"/>
84-
</constraints>
8577
</view>
8678
</viewController>
8779
<placeholder placeholderIdentifier="IBFirstResponder" id="3" sceneMemberID="firstResponder"/>
8880
</objects>
81+
<point key="canvasLocation" x="15" y="66"/>
8982
</scene>
9083
</scenes>
9184
<classes>
92-
<class className="NSLayoutConstraint" superclassName="NSObject">
93-
<source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
94-
</class>
9585
<class className="ViewController" superclassName="UIViewController">
9686
<source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/>
9787
<relationships>

SIAlertViewExample/SIAlertViewExample/en.lproj/MainStoryboard_iPhone.storyboard

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="12D78" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="12D78" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="2">
33
<dependencies>
44
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="2083"/>
55
</dependencies>
@@ -12,10 +12,9 @@
1212
<rect key="frame" x="0.0" y="20" width="320" height="548"/>
1313
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
1414
<subviews>
15-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pOO-xA-Q3d">
16-
<constraints>
17-
<constraint firstAttribute="width" constant="73" id="JxU-WL-jbm"/>
18-
</constraints>
15+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="pOO-xA-Q3d">
16+
<rect key="frame" x="124" y="34" width="73" height="44"/>
17+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
1918
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
2019
<state key="normal" title="Alert1">
2120
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -28,7 +27,9 @@
2827
<action selector="alert1:" destination="2" eventType="touchUpInside" id="eI7-ge-PtA"/>
2928
</connections>
3029
</button>
31-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dRt-8t-N8e">
30+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="dRt-8t-N8e">
31+
<rect key="frame" x="124" y="85" width="73" height="44"/>
32+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
3233
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
3334
<state key="normal" title="Alert2">
3435
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -41,7 +42,9 @@
4142
<action selector="alert2:" destination="2" eventType="touchUpInside" id="Hs7-Mg-iYe"/>
4243
</connections>
4344
</button>
44-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sMS-O7-o5V">
45+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="sMS-O7-o5V">
46+
<rect key="frame" x="124" y="136" width="73" height="44"/>
47+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
4548
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
4649
<state key="normal" title="Alert3">
4750
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -54,7 +57,9 @@
5457
<action selector="alert3:" destination="2" eventType="touchUpInside" id="oTa-SE-c9l"/>
5558
</connections>
5659
</button>
57-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="twJ-0X-iwj">
60+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="twJ-0X-iwj">
61+
<rect key="frame" x="124" y="187" width="73" height="44"/>
62+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
5863
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
5964
<state key="normal" title="1+2+3">
6065
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
@@ -69,19 +74,6 @@
6974
</button>
7075
</subviews>
7176
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
72-
<constraints>
73-
<constraint firstItem="sMS-O7-o5V" firstAttribute="top" secondItem="dRt-8t-N8e" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="0Xl-2X-zp1"/>
74-
<constraint firstItem="twJ-0X-iwj" firstAttribute="leading" secondItem="sMS-O7-o5V" secondAttribute="leading" type="default" id="3bR-fa-0qq"/>
75-
<constraint firstItem="twJ-0X-iwj" firstAttribute="top" secondItem="sMS-O7-o5V" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="Frc-xk-rb6"/>
76-
<constraint firstItem="pOO-xA-Q3d" firstAttribute="centerX" secondItem="3" secondAttribute="centerX" type="default" id="cO0-fo-Zix"/>
77-
<constraint firstItem="pOO-xA-Q3d" firstAttribute="trailing" secondItem="dRt-8t-N8e" secondAttribute="trailing" type="default" id="dEF-F9-Oc0"/>
78-
<constraint firstItem="sMS-O7-o5V" firstAttribute="leading" secondItem="dRt-8t-N8e" secondAttribute="leading" type="default" id="dhC-wf-Pvj"/>
79-
<constraint firstItem="sMS-O7-o5V" firstAttribute="trailing" secondItem="dRt-8t-N8e" secondAttribute="trailing" type="default" id="ltx-nG-S14"/>
80-
<constraint firstItem="dRt-8t-N8e" firstAttribute="top" secondItem="pOO-xA-Q3d" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="mFi-Hq-dK2"/>
81-
<constraint firstItem="pOO-xA-Q3d" firstAttribute="top" secondItem="3" secondAttribute="top" constant="34" id="nZk-yU-DmC"/>
82-
<constraint firstItem="dRt-8t-N8e" firstAttribute="leading" secondItem="pOO-xA-Q3d" secondAttribute="leading" type="default" id="o2P-u4-HSM"/>
83-
<constraint firstItem="twJ-0X-iwj" firstAttribute="trailing" secondItem="sMS-O7-o5V" secondAttribute="trailing" type="default" id="opL-m5-bgq"/>
84-
</constraints>
8577
</view>
8678
</viewController>
8779
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>

0 commit comments

Comments
 (0)