Browse Source

1.提示框的完善

time 6 years ago
parent
commit
07d4e9a28e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      shiku_im/shiku_im/controller/AlertView/UASAlertView.m

+ 4 - 0
shiku_im/shiku_im/controller/AlertView/UASAlertView.m

@@ -25,9 +25,13 @@ static UASAlertView *alert = nil;
         
         alert = [[UASAlertView alloc]initWithFrame:[UIScreen mainScreen].bounds];
         
+        alert.windowLevel = UIWindowLevelAlert;
         
         alert.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.2f];
         
+        UIViewController *viewC = [UIViewController new];
+        
+        alert.rootViewController = viewC;
         
         [alert makeKeyAndVisible];