Guest User

Untitled

a guest
May 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. @property (nonatomic, strong) UIWindow *alertWindow;
  2.  
  3. - (void)p_setupAlertWindow {
  4. self.alertWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  5. [self.alertWindow setWindowLevel:UIWindowLevelAlert];
  6. UIViewController* viewController = [[UIViewController alloc] init];
  7. [viewController.view addSubview:[PUT_ALERT_VIEW]];
  8. [self.myLL setHidden:NO];
  9. [self.alertWindow setRootViewController:viewController];
  10. [self.alertWindow setUserInteractionEnabled:NO];
  11. }
  12.  
  13. // show alert window
  14. [self.alertWindow setHidden:NO];
  15.  
  16. // hide alert window
  17. [self.alertWindow setHidden:YES];
Add Comment
Please, Sign In to add comment