title: Objective-C passing methods as parameters
body: <p>How do you pass one method as a parameter to another method? I'm doing this across classes.</p>
  
  <p>Class A:</p>
  
  <pre><code>+ (void)theBigFunction:(?)func{
      // run the func here
  }
  </code></pre>
  
  <p>Class B:</p>
  
  <pre><code>- (void)littleBFunction {
      NSLog(@"classB little function");
  }
  
  // somewhere else in the class
  [ClassA theBigFunction:littleBFunction]
  </code></pre>
  
  <p>Class C:</p>
  
  <pre><code>- (void)littleCFunction {
      NSLog(@"classC little function");
  }
  
  // somewhere else in the class
  [ClassA theBigFunction:littleCFunction]
  </code></pre>