title: Parameterized UIButton action selector for method in another class?
body: <p>This is largely a syntactical question. How does one set the UIButton action selector to call a method of a different class? I've done a #import of the class whose methods I need to call with the button and I have the following <strong>partial</strong> understanding of what the button code should look like:</p>
  
  <pre><code>    UIButton *btnSplash = [UIButton buttonWithType:UIButtonTypeRoundedRect];
      btnSplash.frame = CGRectMake(250, 270, 180, 30);
      [btnSplash setTitle:@"Menu" forState:UIControlStateNormal];
      [btnSplash addTarget:self action:@selector([CLASS METHOD:PARAMETER]) forControlEvents:UIControlEventTouchUpInside];
      [self addSubview:btnSplash];
  </code></pre>
  
  <p>However, I get the following errors:</p>
  
  <blockquote>
    <p>expected ':' before '[' token</p>
    
    <p>method name missing in @selector</p>
  </blockquote>
  
  <p>The sample code I've seen in the reference library calls local methods, so I'm trying to generalize and my attempts have thus far been unfruitful.</p>
  
  <p>Thanks</p>