title: How to set BOOL value TRUE on button click
body: <p>I am new to iOS development.
  I have declared a <code>BOOL</code> variable as </p>
  
  <pre><code>@property (nonatomic, assign) BOOL eventCheck;
  </code></pre>
  
  <p>and set this variable's value to <code>YES</code> but I am not getting how to execute my code on click of a <code>button</code> whose <code>BOOL</code> value is YES.
  Please help me out.</p>