Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This doesn't crash, but it doesn't display as the top-level view isn't accessed in any way (and thus none of it's child views are either). What I'm trying to find is a way to make the top-level view the actual instance of my custom class (if possible); rather than setting it as an outlet or adding it as a subview. Commented Sep 4, 2012 at 4:33
  • even if you are using a custom class, since you are using an IB you need to set IBOutlet... otherwise how else will the linkage happen? Commented Sep 4, 2012 at 4:39
  • What I have at the moment (where -> is a parent/child relationship), is MyCustomView->Top-level UIView in nib->all the views in the nib. What I'm aiming for is MyCustomView->all the views in the nib, so the top-level view is the custom class, rather than being contained within it. Commented Sep 4, 2012 at 4:45