time 7 лет назад
Родитель
Сommit
07d4e9a28e
1 измененных файлов с 4 добавлено и 0 удалено
  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];