From f3fb0c3d65735d0f2ef24ccb4ce48c4d155d69e0 Mon Sep 17 00:00:00 2001 From: Kamil Grzegorzewicz Date: Wed, 18 Jan 2017 19:35:44 +0100 Subject: [PATCH] Take into account current status bar visibility --- LGAlertView/LGAlertViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LGAlertView/LGAlertViewController.m b/LGAlertView/LGAlertViewController.m index 07912c3..873da81 100644 --- a/LGAlertView/LGAlertViewController.m +++ b/LGAlertView/LGAlertViewController.m @@ -76,4 +76,8 @@ - (UIStatusBarStyle)preferredStatusBarStyle { return [UIApplication sharedApplication].statusBarStyle; } +- (BOOL)prefersStatusBarHidden { + return [UIApplication sharedApplication].statusBarHidden; +} + @end