Skip to content

Commit

Permalink
尝试解决iOS16 Window旋转问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed Sep 20, 2022
1 parent 9d326b7 commit 5aba309
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LEEAlert.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "LEEAlert"
s.version = "1.6.0"
s.version = "1.6.1"
s.summary = "优雅的Alert ActionSheet"

s.homepage = "https://github.com/lixiang1994/LEEAlert"
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlert.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.6.0
* @version V1.6.1
*/

#import <Foundation/Foundation.h>
Expand Down
7 changes: 4 additions & 3 deletions LEEAlert/LEEAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.6.0
* @version V1.6.1
*/

#import "LEEAlert.h"
Expand Down Expand Up @@ -4079,10 +4079,11 @@ - (void)show{

if (@available(iOS 13.0, *)) {
[LEEAlert shareManager].leeWindow.overrideUserInterfaceStyle = self.config.modelUserInterfaceStyle;

} else {
[[LEEAlert shareManager].leeWindow makeKeyAndVisible];
}

[[LEEAlert shareManager].leeWindow makeKeyAndVisible];

self.isShowing = YES;
}

Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlertHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.6.0
* @version V1.6.1
*/

#ifndef LEEAlertHelper_h
Expand Down
4 changes: 4 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# LEEAlert - 更新日志

V1.6.1
==============
尝试解决iOS16 Window旋转问题

V1.6.0
==============
重构内部布局
Expand Down

0 comments on commit 5aba309

Please sign in to comment.