title: Accessing a Gesture Recognizer Variable in Another Method
body: <p>Hi I have set up my gesture recognizer method here and for example I have set it to be disabled.</p>
  
  <pre><code>- (void)tapToAutoFocus:(UIGestureRecognizer *) gestureRecognizer
  {
      gestureRecognizer.enabled = NO;
  }
  </code></pre>
  
  <p>In anther method I would like to re-enable the gestureRecognizer like so:</p>
  
  <pre><code>-(void)anotherMethod
  {
      gestureRecognizer.enabled = YES;
  }
  </code></pre>
  
  <p>How do I go about accessing the gestureRecognizer variable in another method?  Sorry if this is basic, just not quite sure.  I tried setting the gestureRecognizer variable as a local one, however it messes up the tapToAutoFocus method.  Maybe I am just doing that part wrong.  Thank you!</p>