unrecognized selector sent to instance
<p>My app works fine in the simulator but when I run it on my phone I get this error:</p>

<blockquote>
  <p>2010-04-05 21:32:45.119 Top
  Banana[119:207] <strong>* Terminating app
  due to uncaught exception
  'NSInvalidArgumentException', reason:
  '*</strong> -[MethodViewController
  setReferringObject:]: unrecognized
  selector sent to instance 0x16e930'</p>
</blockquote>

<p>It happens here: </p>

<pre><code>-(void)method {

 [UIView beginAnimations:@"View Flip" context:nil];
 [UIView setAnimationDuration:0.50];
 [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

 [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
 MethodViewController *methodViewController = [[MethodViewController alloc] initWithNibName:@"MethodViewController" bundle:0];   

 NSManagedObject *selectedObject = self.referringObject;
 methodViewController.referringObject = selectedObject;

 [self.navigationController pushViewController:methodViewController animated:NO];

 methodViewController.title = @"Method";

 [UIView commitAnimations];

 [MethodViewController release]; 
}
</code></pre>

<p>It crashes on this line: </p>

<pre><code>methodViewController.referringObject = selectedObject;
</code></pre>

<p>Not sure how to resolve this as it works in the simulator, I'm sure it is fairly basic to fix, any help will be appreciated.</p>
