title: Loading a nib that's included in a Framework
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/707429/can-you-reference-xib-files-from-static-libraries-on-the-iphone">Can you reference Xib files from static libraries on the iPhone?</a>  </p>
  </blockquote>
  
  
  
  <p>I have created an iOS framework and it includes a xib view. When I debugged the program, this line of code worked fine:</p>
  
  <pre><code>MyViewController *controller = [[MyViewController alloc] initWithNibName:@"MyView" bundle:[NSBundle mainBundle]];
  </code></pre>
  
  <p>However, when I 'reference' the framework from another project - the nib is no longer in the 'mainBundle'. What should I do with the code above (that is part of the framework) so it loads from the framework and not the consuming application project?</p>