Method declaration in Objective-C: use of undefined method
<p>I'm junior in Objective-c. Now I've some difficulties with method declaration.
I've been created my own method:</p>

<pre><code>- (BOOL)updateLocation:(CLLocation *)userLocation fromLocationPoint:(CLLocation *)locationPoint ifMaxDistance:(float)maxDistance
{
    if([userLocation distanceFromLocation:locationPoint] &gt;= maxDistance){
        return YES;
    }else{
        return NO;
    }
}
</code></pre>

<p>But when I try to call it via <code>[updateLocation ...]</code>, Xcode says me: "Use of undefined method updateLocation". What's wrong?</p>