Skip to content

Commit 5cc1152

Browse files
fix a bug when os > 8.0
1 parent 32d5c02 commit 5cc1152

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

FEAlertController/FEAlertController.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,15 @@ -(void)dismiss{
273273

274274

275275
if (FEAlertiOS8Later) {
276-
[self dismissViewControllerAnimated:YES completion:nil];
276+
[self dismissViewControllerAnimated:YES completion:^{
277+
// if has alertWindow
278+
if (self.alertWindow) {
279+
[self.alertWindow resignKeyWindow];
280+
self.alertWindow = nil;
281+
282+
[self.fromWindow makeKeyAndVisible];
283+
}
284+
}];
277285
}else{
278286
// iOS7
279287
// animation background

0 commit comments

Comments
 (0)