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: 507
What is the best way to create a custom UIView
that I can consume in Interface Builder?
Create a custom
UIView
in Interface Builder and inherit fromUIView
in a code file, then somehow use it in anotherUIView
ala like a control. (How do I do this?)Create a custom
UIView
in Interface Builder and have a customUIViewController
wire it up. In my mainViewController
, 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