title: Making a delegate for a UIViewController
body: <p>I've looked all over, and found many people with similar problems, but I still can't get my delegates working. I want to make a model view controller pop up, then call a method in the view that made the model view asking it to dismiss it. So I have this line:</p>
  
  <pre><code>mergeConfig *view = [[mergeConfig alloc] initWithNibName:@"mergeConfig" bundle:nil];
  </code></pre>
  
  <p>and I'm trying <code>[view setDelegate:self];</code> as said to on <a href="http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html" rel="nofollow">apple's developer pages,</a> but expectably my model view doesn't have a setDelegate method.</p>
  
  <p>So what I want to know is, how do I get it so that I can set a delegate? And then once I do, does it just automatically pass calls to methods to methods in the parent view with the same name? Apple's pages didn't say what code to put in the model view controller.</p>