It is necessary to create a UIView , to block user actions on the screen, with a view I should close the entire screen including NavigationBar . You can create it through the Window but I would like some simpler way.

enter image description here

  • one
    Well, much easier. just make a translucent twist to fit the screen and put on the current ViewController's twist - Max Mikheyenko
  • close the entire screen including NavigationBar. - Victor Mishustin

1 answer 1

Create a view , make it black and set transparency. Next, add this view to the window .

 UIView *myView = [UIView alloc] initWithFrame:yourFrame]; myView.backgroundColor = [UIColor blackColor]; myView.alpha = 0.2f; UIWindow *currentWindow = [UIApplication sharedApplication].keyWindow; [currentWindow addSubview:myView]; 

IMHO for the sake of this view there is no point in looking for and screwing the library.