Advertisement
Guest User

Untitled

a guest
Oct 14th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "ViewController.h"
  2.  
  3. @interface ViewController ()
  4.  
  5. @end
  6.  
  7. @implementation ViewController
  8.  
  9. - (void)viewDidLoad {
  10.     [super viewDidLoad];
  11.     // Do any additional setup after loading the view.
  12.    
  13.     BOOL someBool = NO;
  14.    
  15.     if (someBool) {
  16.         self.myView.hidden = NO;
  17.        
  18.         while (self.myView.isHidden) {
  19.             NSLog(@"myView is hidden, but it should not be");
  20.             self.myView.hidden = NO;
  21.         }
  22.        
  23.         NSLog(@"myView is no longer hidden");
  24.     }
  25. }
  26.  
  27. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement