title: Why i can not assign true to a BOOL in objective C?
body: <p>Created a <code>BOOL *myBool</code> variable in implementation file as below:</p>
  
  <pre><code>@interface myClass ()
  
  {
      BOOL *myBool;
  }
  
  - (void)viewDidLoad {        
      [super viewDidLoad];
  
      myBool = false; // no error
   }
  - (IBAction)myBtnClickd:(UIButton *)sender {                
      if (!myBool) { 
  
          myBool = true; //error: incompatible integer to pointer conversion assigning to BOOL from int.            
      }        
      else { 
  
          myBool = false;                         
      }                
  }
  </code></pre>
  
  <p>why I can not assign true to it and I am not assigning any <code>int</code> as we can see in the code, I do not want to make it a property.</p>