title: Crash (SIGABRT) while adding a view. (WebView)
body: <p>I am having a crash (triggered by an exception) while adding a WebView. I haven't figured out why. And yes I have browsed the web because this is a very common problem though with no success, I found an answer saying that I should implement the DSYM to track the stack correctly, because looking at all those addresses is just meaningless (and I agree), the thing is I have no idea on how to do this. I found this: <a href="http://www.cimgf.com/2009/12/23/automatically-save-the-dsym-files/" rel="nofollow">save dsym files.</a> But I didn't figure out how to integrate it into my project, besides it looks dangerous. And yes I have NSZombie enabled too, but to no avail. </p>
  
  <p>Anyway now to the point of my question. I have a button that triggers an event, the event changes a string (the URL) according to the button pressed. Then this IBAction calls on the delegate, and the delegate makes a transition to a view that has a UIWebView that will open with the URL edited by the IBAction. So I have the following code:</p>
  
  <p>This is the Delegate method:</p>
  
  <pre><code>WebViewController *awebViewController = [[WebViewController alloc] 
                                           initWithNibName:@"WebView" bundle:nil];
  [self setWebViewController:awebViewController];
  [awebViewController release];
  self.webViewController.finalURL = [NSMutableString stringWithFormat:@"%@", linkString];
  [viewController.view removeFromSuperview];
  // HERE happens the crash, found out using breakpoints
  [self.window addSubview:[webViewController view]];
  
  [UIView commitAnimations];
  [viewController release];
  viewController = nil;
  </code></pre>
  
  <p>This is the exact crash message:</p>
  
  <pre><code>-[WebView initWithCoder:]: unrecognized selector sent to instance 0x5718320
  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
  reason: '[WebView initWithCoder:]: unrecognized selector sent to instance 0x5718320'
  </code></pre>
  
  <p>I have the theory that it tries to make the transition but that there is no actual view to add. Though that is a wild guess. Exceptions are usually called by those kinds of things but in this case I don't see what is happening. </p>
  
  <p>Thank you for your help, and forgive me if it is too dumb a question. </p>