Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @property (nonatomic, strong) UIWindow *alertWindow;
- - (void)p_setupAlertWindow {
- self.alertWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
- [self.alertWindow setWindowLevel:UIWindowLevelAlert];
- UIViewController* viewController = [[UIViewController alloc] init];
- [viewController.view addSubview:[PUT_ALERT_VIEW]];
- [self.myLL setHidden:NO];
- [self.alertWindow setRootViewController:viewController];
- [self.alertWindow setUserInteractionEnabled:NO];
- }
- // show alert window
- [self.alertWindow setHidden:NO];
- // hide alert window
- [self.alertWindow setHidden:YES];
Add Comment
Please, Sign In to add comment