Skip to content

Commit

Permalink
Fixes for 'TextFieldsStyle' on iOS 9 and some bugs. Close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Friend-LGA committed Sep 7, 2015
1 parent c6568fc commit 5019e0f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion Demo/LGAlertViewDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
4A3B78581AD2A28200DB8642 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0620;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "Grigory Lutkov";
TargetAttributes = {
4A3B785F1AD2A28200DB8642 = {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Demo/LGAlertViewDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.test.$(PRODUCT_NAME)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
6 changes: 3 additions & 3 deletions Demo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- LGAlertView (1.0.0)
- LGAlertView (1.0.3)

DEPENDENCIES:
- LGAlertView (from `../`)
Expand All @@ -9,6 +9,6 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
LGAlertView: d7580a71fd5cf7546c723f69e50a0af892c04036
LGAlertView: 0b07e39c4f1cfe28dd7f4054fad352a45e92b2a9

COCOAPODS: 0.37.2
COCOAPODS: 0.38.0
2 changes: 1 addition & 1 deletion LGAlertView.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
7 changes: 5 additions & 2 deletions LGAlertView/LGAlertView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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<UIViewControllerTransitionCoordinator>)coordinator
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 5019e0f

Please sign in to comment.