title: How to create property for BOOL Objective-C
body: <p>Code:</p>
  
  <pre><code>@property (nonatomic, retain) BOOL val;
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Property with ‘retain(or Strong)’ attribute must be of object type</p>
  </blockquote>
  
  <p>I want to use this bool object in another class. I am creating it in .h file</p>