UIView or UIViewController for custom View

Posted by Daniel A. White on Stack Overflow See other posts from Stack Overflow or by Daniel A. White
Published on 2010-04-14T18:42:03Z Indexed on 2010/04/14 18:43 UTC
Read the original article Hit count: 488

What is the best way to create a custom UIView that I can consume in Interface Builder?

  1. Create a custom UIView in Interface Builder and inherit from UIView in a code file, then somehow use it in another UIView ala like a control. (How do I do this?)

  2. Create a custom UIView in Interface Builder and have a custom UIViewController wire it up. In my main ViewController, place the new view.

Basically, I am trying to create a reusable display view and would like a quick way to change it across all my instances with minimal effort.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c