title: how to use a bool variable in objective c
body: <p>I am currently trying to use a boolean to check for when an event happens..
  However I'm not sure how to use a boolean value in objective c</p>
  
  <p>Heres what I'm doing.</p>
  
  <p>//.h</p>
  
  <pre><code>BOOL *removeActivityIndicator;
  //..
  @property (nonatomic, assign) BOOL *removeActivityIndicator;
  </code></pre>
  
  <p>//.m</p>
  
  <pre><code>if ([filteredArray count] == 0)
          {
              self.removeActivityIndicator = YES;
          }
          else if([filteredArray count] !=0)
          {
              tempArray = filteredArray;
          }
  }
  </code></pre>
  
  <p>So I'm checking if the filtered array has no values if thats the case then I want to stop my UIActivityIndicator thats Is currently running in my uitableview cell.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  //...
  
  //Stop ActivityIndicator if arrays have no values for the user
      if(indexPath.section == 0)
      {        
          if ((indexPath.row == 1) &amp;&amp; (self.removeActivityIndicator == 0)) //problem
          {
              //Stop activity indicators
              //[activityView stopAnimating];
              cell.accessoryView = nil;//replaces activity indicator
          }
      }
  
  //...
  </code></pre>
  
  <p>My problem happens in the if parameters..</p>
  
  <pre><code>(self.removeActivityIndicator == 0)
  </code></pre>
  
  <p>I have no idea how to check if the BOOL is true or not.</p>
  
  <p>any help would be greatly appreciated.</p>