title: ARC semantic Issue, Semantic issue error.
body: <p>I've downloaded this <a href="http://www.raywenderlich.com/42266/augmented-reality-ios-tutorial-location-based" rel="nofollow noreferrer">Raywenderlich tutorial</a> and I am having a problem with this part of code.</p>
  <p>I am still new in iOS development and I cant understand what does it means. I have searched over the internet but none of those is the answer.</p>
  <p>Please help me on this.</p>
  <pre><code>int index = [_locations indexOfObjectPassingTest:^(id obj, NSUInteger index, BOOL *stop) {
      return [[obj location] isEqual:location];
  }]; 
  </code></pre>
  <p>There are 3 errors are as following:</p>
  <blockquote>
  <p>Multiple methods named 'location' found with mismatched result, parameter type or attributes</p>
  <p>Incompatible block pointer types sending 'void (^)(__strong id, NSUInteger, BOOL *)' to parameter of type 'BOOL (^)(__strong id, NSUInteger, BOOL *)'</p>
  <p>Bad receiver type 'CGFloat' (aka 'float')</p>
  </blockquote>
  <p>Here is the complete code where you can find this line:</p>
  <pre><code>- (void)didTouchMarkerView:(MarkerView *)markerView 
  {
      ARGeoCoordinate *tappedCoordinate = [markerView coordinate];
      CLLocation *location = [tappedCoordinate geoLocation];
  
      int index = [_locations indexOfObjectPassingTest:^(id obj, NSUInteger index, BOOL *stop) {
      return [[obj location] isEqual:location];
      }]; 
  
      if(index != NSNotFound) 
      {
          Place *tappedPlace = [_locations objectAtIndex:index];
          [[PlacesLoader sharedInstance] loadDetailInformation:tappedPlace successHanlder:^(NSDictionary *response) {
              NSLog(@&quot;Response: %@&quot;, response);
              NSDictionary *resultDict = [response objectForKey:@&quot;result&quot;];
              [tappedPlace setPhoneNumber:[resultDict objectForKey:kPhoneKey]];
              [tappedPlace setWebsite:[resultDict objectForKey:kWebsiteKey]];
              [self showInfoViewForPlace:tappedPlace];
       } errorHandler:^(NSError *error) {
          NSLog(@&quot;Error: %@&quot;, error);}];
      }
  }
  </code></pre>