Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When you call <code>[AboutViewController init]</code>, it's expected to call some form of <code>[super init]</code>, which is a synonym for <code>[UIViewController init]</code>. When this happens, your view controller will automatically look for a nib file called (in your case) <code>AboutViewController.xib</code>. If it finds that file, it loads it's contents into your view controller for you.</p> <p>So basically, all you need to do is initialize your view controller, and make sure it has the same name as the associated nib file.</p> <p>If you wanted to load a nib file with a different name into your view controller, you could explicitly call <a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/initWithNibName:bundle:" rel="noreferrer"><code>initWithNibName:bundle:</code></a> with the name of whichever nib file you like.</p> <p>If the standard init (with a same-name nib file) isn't working for you, there are a couple things you could check.</p> <ul> <li>the spelling of the class name is the same as the spelling (and case) of the nib file</li> <li>the nib file is included in the project, and not just sitting in the same directory</li> <li>your <code>UIViewController</code> subclass's init method does also call <code>[super init]</code></li> <li>you are calling your <code>UIViewController</code> subclass's init method</li> <li>you are indeed making your view controller's view visible</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload