title: Struggling to pass multiple parameters to performSelectorInBackground method
body: <p>I found this <a href="https://stackoverflow.com/questions/5299629/performselectorinbackground-with-multiple-params">piece of code</a> from an earlier Stack Overflow question which describes how to pass multiple parameters to a performSelectorInBackground method.</p>
  
  <p>However I'm struggling to apply the code to my problem, here is MY code:</p>
  
  <pre><code>- (void)callingMethod {
      NSDictionary * args = [NSDictionary dictionaryWithObjectsAndKeys:
                             cell, @"cell",
                             storyIndex, @"storyIndex",
                             nil];
      [self performSelectorInBackground:@selector(setCellImageWrapper:)
                             withObject:args];
  }
  
  - (void)setCellImageWrapper:(NSDictionary *)args {
      [self setCellImage:[[args objectForKey:@"cell"]]
               withIndex:[[args objectForKey:@"storyIndex"] intValue]];
  }
  
  - (void) setCellImage: (EventTableCell *)cell withIndex:(int)storyIndex {
  
      //My Code
  
  }
  </code></pre>
  
  <p>As you can see I'm trying to pass an object of type EventTableCell to the setCellImage method from the setCellImageWrapper method.  I'm getting the error "Expected Identifier" when I try to call the setCellImage -withIndex method.  Can anyone tell me what I'm doing wrong?</p>
  
  <p>Thanks,</p>
  
  <p>Jack</p>