title: How to load xib file with attached view controller?
body: <p>I am using a xib file as a back view in coverflow component . and it is seeing nicely .</p>
  
  <p>The code for loading a xib file is :</p>
  
  <pre><code>NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"TestMine" owner:nil options:nil];
          backView = [array objectAtIndex:0];
  </code></pre>
  
  <p>Now I want to attach a view controller with this xib without changing the current code .</p>
  
  <p>How can I do so ?</p>
  
  <p>I am getting the error : <code>Exception :*** -[UIViewController superview]: unrecognized selector sent to instance 0x5891120</code></p>
  
  <p>Tell me if more details need to answer the question .</p>
  
  <p>Thanks .
  <a href="https://i.stack.imgur.com/Rwkhs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rwkhs.png" alt="alt text"></a>
  </p>