title: unrecognized selector sent to instance (iOS)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5637203/unrecognized-selector-sent-to-instance">unrecognized selector sent to instance</a>  </p>
  </blockquote>
  
  
  
  <p>Well... like so many others, I have gotten a "unrecognized selector sent to instance" error...</p>
  
  <p>The problem occurs when I press a button, e.g. in this case:</p>
  
  <pre><code>-(IBAction)gotoTone:(id)sender
  {
      if(self.tone == nil)
      {
         Tone *toneMain = [[Tone alloc]
                                initWithNibName:@"Tone" bundle:[NSBundle mainBundle]];
         self.tone = toneMain;
         [toneMain release];
      }
  
      [self.navigationController pushViewController:tone animated:YES];
  }
  </code></pre>
  
  <p>The error is: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Tone gotoTone:]: unrecognized selector sent to instance 0x531caa0'</p>
  
  <p>The error started occurring after I inserted a new view as the first view presented to the user... Also, I use a navigation bar and at first I had forgotten to go into MainWindow.xib and change the Navigation Controller to the new view, but that is fixed now.</p>
  
  <p>You can see my entire code her:</p>
  
  <p>The .h in which the file occurs: <a href="http://snipt.org/xnoO" rel="nofollow noreferrer">http://snipt.org/xnoO</a>
  The .m in which the file occurs: <a href="http://snipt.org/xnoM" rel="nofollow noreferrer">http://snipt.org/xnoM</a></p>
  
  <p>Don't mind all the out-commented lines, that's just until I get this fixed...</p>
  
  <p>I've tried finding a solution to this by reading other cases of "unrecognized selector sent to instance", but I guess I'm just not seeing the solution. I've checked my IB-connects, I've cleaned the project and such...</p>
  
  <p>Any help would be greatly appreciated</p>