Permalink
Browse files

Removed silly warnings and updated documentation

  • Loading branch information...
1 parent a25b8d4 commit eca17a2af1fe1a65ba44b1454b2187c42d7b77f9 @frankdilo committed Dec 7, 2013
View
No changes.
View
@@ -235,7 +235,7 @@ - (void)doTextScrollAnimation:(NSNumber*)timeInterval
__block CGRect frame = self.messageLabel.frame;
[UIView transitionWithView:self.messageLabel
duration:timeInterval.floatValue
- options:UIViewAnimationCurveLinear
+ options:UIViewAnimationOptionCurveLinear
animations:^{
frame.origin.x = [UIScreen mainScreen].bounds.size.width - frame.size.width - frame.origin.x;
self.messageLabel.frame = frame;
View
0 SampleProject/Default-568h@2x.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -15,8 +15,6 @@
0176092015F8D2C7007057D6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0176091F15F8D2C7007057D6 /* main.m */; };
0176092415F8D2C7007057D6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0176092315F8D2C7007057D6 /* AppDelegate.m */; };
0176092715F8D2C7007057D6 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0176092615F8D2C7007057D6 /* ViewController.m */; };
- 125C477D16022C8900E43D08 /* ViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 125C477B16022C8900E43D08 /* ViewController_iPad.xib */; };
- 125C478716024A0700E43D08 /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 125C478516024A0700E43D08 /* ViewController.xib */; };
BB0AF15E1670121000FFEA63 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = BB0AF15D1670121000FFEA63 /* Default-568h@2x.png */; };
DC7713371851E6AE009921A4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC7713361851E6AE009921A4 /* Main.storyboard */; };
/* End PBXBuildFile section */
@@ -36,8 +34,6 @@
0176092315F8D2C7007057D6 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
0176092515F8D2C7007057D6 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
0176092615F8D2C7007057D6 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
- 125C477C16022C8900E43D08 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPad.xib; sourceTree = "<group>"; };
- 125C478616024A0700E43D08 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; sourceTree = "<group>"; };
BB0AF15D1670121000FFEA63 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "../Default-568h@2x.png"; sourceTree = "<group>"; };
DC7713361851E6AE009921A4 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -101,8 +97,6 @@
0176092515F8D2C7007057D6 /* ViewController.h */,
0176092615F8D2C7007057D6 /* ViewController.m */,
DC7713361851E6AE009921A4 /* Main.storyboard */,
- 125C478516024A0700E43D08 /* ViewController.xib */,
- 125C477B16022C8900E43D08 /* ViewController_iPad.xib */,
0130749E160321D40097FAC2 /* FDStatusBarNotifierView */,
0176091A15F8D2C7007057D6 /* Supporting Files */,
);
@@ -147,7 +141,7 @@
0176090615F8D2C7007057D6 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0440;
+ LastUpgradeCheck = 0500;
ORGANIZATIONNAME = "Francesco Di Lorenzo";
};
buildConfigurationList = 0176090915F8D2C7007057D6 /* Build configuration list for PBXProject "Example" */;
@@ -174,8 +168,6 @@
files = (
0176091E15F8D2C7007057D6 /* InfoPlist.strings in Resources */,
DC7713371851E6AE009921A4 /* Main.storyboard in Resources */,
- 125C477D16022C8900E43D08 /* ViewController_iPad.xib in Resources */,
- 125C478716024A0700E43D08 /* ViewController.xib in Resources */,
BB0AF15E1670121000FFEA63 /* Default-568h@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -205,32 +197,20 @@
name = InfoPlist.strings;
sourceTree = "<group>";
};
- 125C477B16022C8900E43D08 /* ViewController_iPad.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 125C477C16022C8900E43D08 /* en */,
- );
- name = ViewController_iPad.xib;
- sourceTree = "<group>";
- };
- 125C478516024A0700E43D08 /* ViewController.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 125C478616024A0700E43D08 /* en */,
- );
- name = ViewController.xib;
- sourceTree = "<group>";
- };
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
0176092B15F8D2C7007057D6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
@@ -243,10 +223,14 @@
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
@@ -255,16 +239,23 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
@@ -5,7 +5,7 @@
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<scenes>
- <!--View Controller - Status Bar Message-->
+ <!--View Controller - Sample-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController">
@@ -17,14 +17,14 @@
<rect key="frame" x="0.0" y="64" width="320" height="504"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
- <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Hello" borderStyle="roundedRect" placeholder="Message" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Obz-RJ-50d">
- <rect key="frame" x="20" y="81" width="280" height="30"/>
+ <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Hello, GitHub!" borderStyle="roundedRect" placeholder="Message" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Obz-RJ-50d">
+ <rect key="frame" x="20" y="44" width="280" height="30"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
- <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aZm-K9-HSe">
- <rect key="frame" x="24" y="119" width="276" height="30"/>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aZm-K9-HSe">
+ <rect key="frame" x="22" y="82" width="276" height="30"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<state key="normal" title="Show message">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -33,18 +33,18 @@
<action selector="showMessage" destination="vXZ-lx-hvc" eventType="touchUpInside" id="xyR-AH-rpW"/>
</connections>
</button>
- <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="StN-lr-lAk">
- <rect key="frame" x="24" y="202" width="276" height="30"/>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="StN-lr-lAk">
+ <rect key="frame" x="22" y="132" width="276" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <state key="normal" title="Show with NO autohide">
+ <state key="normal" title="Show (without autohide)">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="showMessageNoAutohide:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="lew-3d-KqO"/>
</connections>
</button>
- <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IaJ-9C-09h">
- <rect key="frame" x="24" y="240" width="276" height="30"/>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IaJ-9C-09h">
+ <rect key="frame" x="22" y="160" width="276" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Hide">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -56,23 +56,23 @@
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
- <constraint firstItem="StN-lr-lAk" firstAttribute="top" secondItem="aZm-K9-HSe" secondAttribute="bottom" constant="53" id="7Rs-fs-BBA"/>
- <constraint firstItem="Obz-RJ-50d" firstAttribute="top" secondItem="obs-Ot-J6O" secondAttribute="bottom" constant="17" id="BHd-TH-JDc"/>
- <constraint firstAttribute="trailing" secondItem="aZm-K9-HSe" secondAttribute="trailing" constant="20" id="Bmg-h4-ooO"/>
+ <constraint firstItem="StN-lr-lAk" firstAttribute="top" secondItem="aZm-K9-HSe" secondAttribute="bottom" constant="20" id="7Rs-fs-BBA"/>
+ <constraint firstItem="Obz-RJ-50d" firstAttribute="top" secondItem="obs-Ot-J6O" secondAttribute="bottom" constant="44" id="BHd-TH-JDc"/>
+ <constraint firstAttribute="trailing" secondItem="aZm-K9-HSe" secondAttribute="trailing" constant="22" id="Bmg-h4-ooO"/>
<constraint firstItem="aZm-K9-HSe" firstAttribute="top" secondItem="Obz-RJ-50d" secondAttribute="bottom" constant="8" id="D7R-Fz-S0R"/>
- <constraint firstAttribute="trailing" secondItem="IaJ-9C-09h" secondAttribute="trailing" constant="20" id="JuO-qg-cX0"/>
+ <constraint firstAttribute="trailing" secondItem="IaJ-9C-09h" secondAttribute="trailing" constant="22" id="JuO-qg-cX0"/>
<constraint firstAttribute="trailing" secondItem="Obz-RJ-50d" secondAttribute="trailing" constant="20" id="TEB-UP-wEj"/>
- <constraint firstItem="IaJ-9C-09h" firstAttribute="top" secondItem="StN-lr-lAk" secondAttribute="bottom" constant="8" symbolic="YES" id="VcW-xe-CF8"/>
- <constraint firstAttribute="trailing" secondItem="StN-lr-lAk" secondAttribute="trailing" constant="20" id="aAa-kZ-EwS"/>
- <constraint firstItem="StN-lr-lAk" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="24" id="aaH-IC-moV"/>
+ <constraint firstItem="IaJ-9C-09h" firstAttribute="top" secondItem="StN-lr-lAk" secondAttribute="bottom" constant="-2" id="VcW-xe-CF8"/>
+ <constraint firstAttribute="trailing" secondItem="StN-lr-lAk" secondAttribute="trailing" constant="22" id="aAa-kZ-EwS"/>
+ <constraint firstItem="StN-lr-lAk" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="22" id="aaH-IC-moV"/>
<constraint firstItem="IaJ-9C-09h" firstAttribute="trailing" secondItem="aZm-K9-HSe" secondAttribute="trailing" id="b9W-IS-Aj4"/>
- <constraint firstItem="IaJ-9C-09h" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="24" id="jtF-DY-VPQ"/>
- <constraint firstItem="aZm-K9-HSe" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="24" id="ka9-h1-yLW"/>
+ <constraint firstItem="IaJ-9C-09h" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="22" id="jtF-DY-VPQ"/>
+ <constraint firstItem="aZm-K9-HSe" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="22" id="ka9-h1-yLW"/>
<constraint firstItem="Obz-RJ-50d" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="20" id="ukf-sl-RcW"/>
</constraints>
</view>
<extendedEdge key="edgesForExtendedLayout" bottom="YES"/>
- <navigationItem key="navigationItem" title="Status Bar Message" id="TcK-3P-RBN"/>
+ <navigationItem key="navigationItem" title="Sample" id="TcK-3P-RBN"/>
<connections>
<outlet property="messageField" destination="Obz-RJ-50d" id="Iqz-Jp-WcH"/>
</connections>
View
No changes.
View
No changes.
View
No changes.
Oops, something went wrong.

0 comments on commit eca17a2

Please sign in to comment.