diff --git a/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj b/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj index d660577..f2b032c 100644 --- a/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj +++ b/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj @@ -12,7 +12,7 @@ 4A3B78711AD2A28300DB8642 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4A3B78701AD2A28300DB8642 /* Images.xcassets */; }; 4A3B788B1AD2A93D00DB8642 /* TableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A3B788A1AD2A93D00DB8642 /* TableViewController.m */; }; 4A3B788E1AD2B29F00DB8642 /* NavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A3B788D1AD2B29F00DB8642 /* NavigationController.m */; }; - 4ABF191C1BDA895200A12B6E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4ABF191B1BDA895200A12B6E /* LaunchScreen.storyboard */; settings = {ASSET_TAGS = (); }; }; + 4ABF191C1BDA895200A12B6E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4ABF191B1BDA895200A12B6E /* LaunchScreen.storyboard */; }; 92E830BBF9A0E9733AA1BC7E /* libPods-LGAlertViewDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 623B5C352E52555F577FBF72 /* libPods-LGAlertViewDemo.a */; }; /* End PBXBuildFile section */ @@ -321,6 +321,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = LGAlertViewDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.test.$(PRODUCT_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -334,6 +335,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = LGAlertViewDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.test.$(PRODUCT_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Demo/LGAlertViewDemo/AppDelegate.m b/Demo/LGAlertViewDemo/AppDelegate.m index 24747fe..743c642 100644 --- a/Demo/LGAlertViewDemo/AppDelegate.m +++ b/Demo/LGAlertViewDemo/AppDelegate.m @@ -7,12 +7,14 @@ // #import "AppDelegate.h" +#import "TableViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - self.navigationController = [NavigationController new]; + TableViewController *tableViewController = [TableViewController new]; + self.navigationController = [[NavigationController alloc] initWithRootViewController:tableViewController]; self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.rootViewController = self.navigationController; diff --git a/Demo/LGAlertViewDemo/NavigationController.m b/Demo/LGAlertViewDemo/NavigationController.m index 7f1d21d..b325123 100644 --- a/Demo/LGAlertViewDemo/NavigationController.m +++ b/Demo/LGAlertViewDemo/NavigationController.m @@ -7,30 +7,34 @@ // #import "NavigationController.h" -#import "TableViewController.h" @interface NavigationController () -@property (strong, nonatomic) TableViewController *tableViewController; - @end @implementation NavigationController -- (id)init +- (void)viewDidLoad { - self = [super init]; - if (self) - { - self.tableViewController = [TableViewController new]; - [self setViewControllers:@[self.tableViewController]]; - } - return self; + [super viewDidLoad]; + + self.navigationBar.barTintColor = [UIColor colorWithRed:0.f green:0.5 blue:1.f alpha:1.f]; + self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor]}; } - (BOOL)shouldAutorotate { - return self.topViewController.shouldAutorotate; + return YES; +} + +- (BOOL)prefersStatusBarHidden +{ + return UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation); +} + +- (UIStatusBarStyle)preferredStatusBarStyle +{ + return UIStatusBarStyleLightContent; } @end diff --git a/Demo/Podfile b/Demo/Podfile index 608bfa7..5920c6f 100644 --- a/Demo/Podfile +++ b/Demo/Podfile @@ -1,7 +1,6 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '6.0' -inhibit_all_warnings! xcodeproj 'LGAlertViewDemo' diff --git a/Demo/Podfile.lock b/Demo/Podfile.lock index 42f7a3d..5294841 100644 --- a/Demo/Podfile.lock +++ b/Demo/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - LGAlertView (1.0.4) + - LGAlertView (1.1.1) DEPENDENCIES: - LGAlertView (from `../`) @@ -9,6 +9,6 @@ EXTERNAL SOURCES: :path: ../ SPEC CHECKSUMS: - LGAlertView: 2c0405af11a4622accd2acf06fa1fb0eadb1ccf7 + LGAlertView: 6d09e9aef4878d78c5f182ac196f1ea829c9ff61 COCOAPODS: 0.39.0 diff --git a/LGAlertView.podspec b/LGAlertView.podspec index 6b95a29..fc2562b 100644 --- a/LGAlertView.podspec +++ b/LGAlertView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'LGAlertView' - s.version = '1.1.0' + s.version = '1.1.1' s.platform = :ios, '6.0' s.license = 'MIT' s.homepage = 'https://github.com/Friend-LGA/LGAlertView' diff --git a/LGAlertView/LGAlertView.m b/LGAlertView/LGAlertView.m index e4bd0c9..6bde021 100644 --- a/LGAlertView/LGAlertView.m +++ b/LGAlertView/LGAlertView.m @@ -65,8 +65,8 @@ @interface LGAlertView ()