Permalink
Browse files

Fixes xCode prior to 4.5 preview

Project wasn't building on xCode versions prior to 4.5 as it was
initiated on xCode 4.5.
  • Loading branch information...
1 parent 35ed574 commit bcf0399a14c8745cc82b7ca8affa342ab77feebc @ShadyElyaski committed Jun 18, 2012
View
@@ -12,7 +12,7 @@ Inspired by National Geographics: Park Guides.
# SDK Support
-It supports iOS 4.3 to iOS 6
+It supports iOS 4 to iOS 6
# Screenshot
View
@@ -5,6 +5,12 @@
// Created by Shady A. Elyaski on 6/13/12.
// Copyright (c) 2012 mash, ltd. All rights reserved.
//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
#import <UIKit/UIKit.h>
#import "SEFilterKnob.h"
View
@@ -5,6 +5,11 @@
// Created by Shady A. Elyaski on 6/13/12.
// Copyright (c) 2012 mash, ltd. All rights reserved.
//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#import "SEFilterControl.h"
@@ -73,10 +78,10 @@ -(id) initWithFrame:(CGRect) frame Titles:(NSArray *) titles{
[lbl setFont:TITLE_FONT];
[lbl setShadowColor:TITLE_SHADOW_COLOR];
[lbl setTextColor:TITLE_COLOR];
- [lbl setLineBreakMode:NSLineBreakByTruncatingTail];
+ [lbl setLineBreakMode:UILineBreakModeMiddleTruncation];
[lbl setAdjustsFontSizeToFitWidth:YES];
[lbl setMinimumFontSize:8];
- [lbl setTextAlignment:NSTextAlignmentCenter];
+ [lbl setTextAlignment:UITextAlignmentCenter];
[lbl setShadowOffset:CGSizeMake(0, 1)];
[lbl setBackgroundColor:[UIColor clearColor]];
[lbl setTag:i+50];
@@ -152,9 +157,9 @@ -(void)drawRect:(CGRect)rect{
//Draw top Gradient
- CGFloat colors[12] = { 0, 0, 0, 1,
- 0, 0, 0, 0,
- 0, 0, 0, 0};
+ CGFloat colors[12] = {0, 0, 0, 1,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0};
CGColorSpaceRef baseSpace = CGColorSpaceCreateDeviceRGB();
CGGradientRef gradient = CGGradientCreateWithColorComponents(baseSpace, colors, NULL, 3);
@@ -7,22 +7,24 @@
objects = {
/* Begin PBXBuildFile section */
+ 96BB7403158F184500A73386 /* viewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96BB7405158F184500A73386 /* viewController_iPhone.xib */; };
+ 96E22A9C158F1CCE00FAD5FE /* viewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96E22A9B158F1CCE00FAD5FE /* viewController_iPad.xib */; };
96EB2937158B9A4600053974 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96EB2936158B9A4600053974 /* UIKit.framework */; };
96EB2939158B9A4600053974 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96EB2938158B9A4600053974 /* Foundation.framework */; };
96EB293B158B9A4600053974 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96EB293A158B9A4600053974 /* CoreGraphics.framework */; };
96EB2941158B9A4600053974 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 96EB293F158B9A4600053974 /* InfoPlist.strings */; };
96EB2943158B9A4600053974 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 96EB2942158B9A4600053974 /* main.m */; };
96EB2947158B9A4600053974 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 96EB2946158B9A4600053974 /* AppDelegate.m */; };
96EB294A158B9A4600053974 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96EB2949158B9A4600053974 /* ViewController.m */; };
- 96EB294D158B9A4600053974 /* ViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96EB294B158B9A4600053974 /* ViewController_iPhone.xib */; };
- 96EB2950158B9A4600053974 /* ViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96EB294E158B9A4600053974 /* ViewController_iPad.xib */; };
96EB295C158B9A6E00053974 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 96EB295B158B9A6E00053974 /* icon.png */; };
96EB295E158B9A8D00053974 /* icon_iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = 96EB295D158B9A8D00053974 /* icon_iPad.png */; };
96EB296C158B9B3000053974 /* SEFilterControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 96EB2969158B9B3000053974 /* SEFilterControl.m */; };
96EB296D158B9B3000053974 /* SEFilterKnob.m in Sources */ = {isa = PBXBuildFile; fileRef = 96EB296B158B9B3000053974 /* SEFilterKnob.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ 96BB7404158F184500A73386 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/viewController_iPhone.xib; sourceTree = "<group>"; };
+ 96E22A9B158F1CCE00FAD5FE /* viewController_iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = viewController_iPad.xib; sourceTree = "<group>"; };
96EB2932158B9A4600053974 /* SEFilterControl_Sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SEFilterControl_Sample.app; sourceTree = BUILT_PRODUCTS_DIR; };
96EB2936158B9A4600053974 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
96EB2938158B9A4600053974 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@@ -35,8 +37,6 @@
96EB2946158B9A4600053974 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
96EB2948158B9A4600053974 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
96EB2949158B9A4600053974 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
- 96EB294C158B9A4600053974 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPhone.xib; sourceTree = "<group>"; };
- 96EB294F158B9A4600053974 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPad.xib; sourceTree = "<group>"; };
96EB295B158B9A6E00053974 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = ../icon.png; sourceTree = "<group>"; };
96EB295D158B9A8D00053974 /* icon_iPad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon_iPad.png; path = ../icon_iPad.png; sourceTree = "<group>"; };
96EB2968158B9B3000053974 /* SEFilterControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SEFilterControl.h; sourceTree = "<group>"; };
@@ -94,8 +94,8 @@
96EB2946158B9A4600053974 /* AppDelegate.m */,
96EB2948158B9A4600053974 /* ViewController.h */,
96EB2949158B9A4600053974 /* ViewController.m */,
- 96EB294B158B9A4600053974 /* ViewController_iPhone.xib */,
- 96EB294E158B9A4600053974 /* ViewController_iPad.xib */,
+ 96BB7405158F184500A73386 /* viewController_iPhone.xib */,
+ 96E22A9B158F1CCE00FAD5FE /* viewController_iPad.xib */,
96EB293D158B9A4600053974 /* Supporting Files */,
);
path = SEFilterControl_Sample;
@@ -177,10 +177,10 @@
buildActionMask = 2147483647;
files = (
96EB2941158B9A4600053974 /* InfoPlist.strings in Resources */,
- 96EB294D158B9A4600053974 /* ViewController_iPhone.xib in Resources */,
- 96EB2950158B9A4600053974 /* ViewController_iPad.xib in Resources */,
96EB295C158B9A6E00053974 /* icon.png in Resources */,
96EB295E158B9A8D00053974 /* icon_iPad.png in Resources */,
+ 96BB7403158F184500A73386 /* viewController_iPhone.xib in Resources */,
+ 96E22A9C158F1CCE00FAD5FE /* viewController_iPad.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -202,28 +202,21 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
- 96EB293F158B9A4600053974 /* InfoPlist.strings */ = {
+ 96BB7405158F184500A73386 /* viewController_iPhone.xib */ = {
isa = PBXVariantGroup;
children = (
- 96EB2940158B9A4600053974 /* en */,
+ 96BB7404158F184500A73386 /* en */,
);
- name = InfoPlist.strings;
+ name = viewController_iPhone.xib;
+ path = ..;
sourceTree = "<group>";
};
- 96EB294B158B9A4600053974 /* ViewController_iPhone.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 96EB294C158B9A4600053974 /* en */,
- );
- name = ViewController_iPhone.xib;
- sourceTree = "<group>";
- };
- 96EB294E158B9A4600053974 /* ViewController_iPad.xib */ = {
+ 96EB293F158B9A4600053974 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
- 96EB294F158B9A4600053974 /* en */,
+ 96EB2940158B9A4600053974 /* en */,
);
- name = ViewController_iPad.xib;
+ name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
@@ -280,7 +273,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SEFilterControl_Sample/SEFilterControl_Sample-Prefix.pch";
INFOPLIST_FILE = "SEFilterControl_Sample/SEFilterControl_Sample-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 4.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -292,7 +285,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SEFilterControl_Sample/SEFilterControl_Sample-Prefix.pch";
INFOPLIST_FILE = "SEFilterControl_Sample/SEFilterControl_Sample-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 4.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Bucket
+ type = "1"
+ version = "1.0">
+</Bucket>
@@ -12,8 +12,8 @@
@interface AppDelegate : UIResponder <UIApplicationDelegate>
-@property (strong, nonatomic) UIWindow *window;
+@property (retain, nonatomic) UIWindow *window;
-@property (strong, nonatomic) ViewController *viewController;
+@property (retain, nonatomic) ViewController *viewController;
-@end
+@end
@@ -11,6 +11,8 @@
#import "ViewController.h"
@implementation AppDelegate
+@synthesize window = _window;
+@synthesize viewController = _viewController;
- (void)dealloc
{
@@ -24,9 +26,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
- self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil] autorelease];
+ self.viewController = [[[ViewController alloc] initWithNibName:@"viewController_iPhone" bundle:nil] autorelease];
} else {
- self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil] autorelease];
+ self.viewController = [[[ViewController alloc] initWithNibName:@"viewController_iPad" bundle:nil] autorelease];
}
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
@@ -44,6 +44,8 @@
<array>
<string>armv7</string>
</array>
+ <key>UIStatusBarStyle</key>
+ <string>UIStatusBarStyleBlackOpaque</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Oops, something went wrong.

0 comments on commit bcf0399

Please sign in to comment.