Skip to content

Commit 808a879

Browse files
committed
Fixed kCurrentWindow
1 parent 073a36d commit 808a879

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

TYAlertControllerDemo/TYAlertController/TYShowAlertView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ @interface TYShowAlertView ()
1515
@end
1616

1717
//current window
18-
#define kCurrentWindow [[UIApplication sharedApplication].windows firstObject]
18+
#define kCurrentWindow [UIApplication sharedApplication].keyWindow
1919

2020
@implementation TYShowAlertView
2121

0 commit comments

Comments
 (0)