From 5019e0f2334ed31fe41b0f05fb8c06603b6a9149 Mon Sep 17 00:00:00 2001 From: Grigory Lutkov Date: Mon, 7 Sep 2015 19:46:19 +0300 Subject: [PATCH] Fixes for 'TextFieldsStyle' on iOS 9 and some bugs. Close #3 --- Demo/LGAlertViewDemo.xcodeproj/project.pbxproj | 5 ++++- Demo/LGAlertViewDemo/Info.plist | 2 +- Demo/Podfile.lock | 6 +++--- LGAlertView.podspec | 2 +- LGAlertView/LGAlertView.m | 7 +++++-- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj b/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj index f15634b..8dee6cb 100644 --- a/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj +++ b/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj @@ -130,7 +130,7 @@ 4A3B78581AD2A28200DB8642 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0620; + LastUpgradeCheck = 0700; ORGANIZATIONNAME = "Grigory Lutkov"; TargetAttributes = { 4A3B785F1AD2A28200DB8642 = { @@ -235,6 +235,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; @@ -301,6 +302,7 @@ ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = LGAlertViewDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.test.$(PRODUCT_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -313,6 +315,7 @@ ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = LGAlertViewDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.test.$(PRODUCT_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; diff --git a/Demo/LGAlertViewDemo/Info.plist b/Demo/LGAlertViewDemo/Info.plist index 493646a..7c961f8 100644 --- a/Demo/LGAlertViewDemo/Info.plist +++ b/Demo/LGAlertViewDemo/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.test.$(PRODUCT_NAME) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/Demo/Podfile.lock b/Demo/Podfile.lock index 7fedba9..75ecf2b 100644 --- a/Demo/Podfile.lock +++ b/Demo/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - LGAlertView (1.0.0) + - LGAlertView (1.0.3) DEPENDENCIES: - LGAlertView (from `../`) @@ -9,6 +9,6 @@ EXTERNAL SOURCES: :path: ../ SPEC CHECKSUMS: - LGAlertView: d7580a71fd5cf7546c723f69e50a0af892c04036 + LGAlertView: 0b07e39c4f1cfe28dd7f4054fad352a45e92b2a9 -COCOAPODS: 0.37.2 +COCOAPODS: 0.38.0 diff --git a/LGAlertView.podspec b/LGAlertView.podspec index 5dbccf0..0febcba 100644 --- a/LGAlertView.podspec +++ b/LGAlertView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'LGAlertView' - s.version = '1.0.2' + s.version = '1.0.3' 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 15f71fb..bc357b7 100644 --- a/LGAlertView/LGAlertView.m +++ b/LGAlertView/LGAlertView.m @@ -193,7 +193,7 @@ - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInte #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0 -#pragma mark iOS == 8 +#pragma mark iOS >= 8 - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator { @@ -989,7 +989,10 @@ - (void)windowVisibleChanged:(NSNotification *)notification UIWindow *window = notification.object; - if ([NSStringFromClass([window class]) isEqualToString:@"UITextEffectsWindow"]) return; + //NSLog(@"%@", NSStringFromClass([window class])); + + if ([NSStringFromClass([window class]) isEqualToString:@"UITextEffectsWindow"] || + [NSStringFromClass([window class]) isEqualToString:@"UIRemoteKeyboardWindow"]) return; if (notification.name == UIWindowDidBecomeVisibleNotification) {