title: Unknown class myView in Interface Builder file
body: <p>I wanted to name my nib differently from my .h and .m files. I think of the view as just that, a view. So I don't see why 'Controller' should be in the name which seems to be the convention. When I do this and make sure that the delegates, views, etc. are set correctly, I get the following runtime warning when I load myView.xib; however, everything runs as expected. I don't like to leave warnings lingering. How do I get rid of it?</p>
  
  <pre><code> Unknown class myView in Interface Builder file
  </code></pre>
  
  <p>myView.xib</p>
  
  <pre><code>&lt;object class="NSMutableArray" key="dict.values"&gt;
      &lt;bool key="EncodedWithXMLCoder"&gt;YES&lt;/bool&gt;
      &lt;string&gt;myViewController&lt;/string&gt;
      &lt;string&gt;UIResponder&lt;/string&gt;
      &lt;string&gt;myView&lt;/string&gt;
  </code></pre>
  
  <p>myViewController.h/m</p>
  
  <pre><code>@interface myViewController 
  </code></pre>
  
  <p>I have looked through all of the related threads on this error and none of the answers or scenarios 100% match.</p>
  
  <p>Reference:
  <a href="https://stackoverflow.com/questions/5575008/unknown-class-myoldclass-in-interface-builder-file">Unknown class MyOldClass in Interface Builder file</a>  -- in my case, the grep would show that I do have a reference to myView. If I rename this to myViewController I get the following:</p>
  
  <pre><code> -[myViewController _setViewDelegate:]: unrecognized selector sent to instance 0x186550
   *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[myViewController _setViewDelegate:]: unrecognized selector sent to instance 0x186550'
  </code></pre>
  
  <p>Reference:
  <a href="https://stackoverflow.com/questions/1725881/unknown-class-myclass-in-interface-builder-file-error-at-runtime">&quot;Unknown class &lt;MyClass&gt; in Interface Builder file&quot; error at runtime</a></p>
  
  <p>I played with ideas on this thread and it did not work. -all_load -ObjC flags don't resolve the error. Nor does the KeepAlive hack.</p>
  
  <p>However, I don't think this is a link error. The class myView exists in context of the nib. So this would be a runtime dynamic loading issue. Also, myView does exist. It is the view in the nib. </p>
  
  <p>Should I just conceded and make my nib file have the same filename as .m and .h files?
  Any thoughts? </p>
  
  <p>tx</p>