What method of UIView gets called when instantiated from a NIB?
Posted
by retailevolved
on Stack Overflow
See other posts from Stack Overflow
or by retailevolved
Published on 2010-04-18T18:17:02Z
Indexed on
2010/04/18
18:23 UTC
Read the original article
Hit count: 195
I have a simple custom view that is connected via outlet to a NIB. For this particular view, there are actions that I would like to perform on the view when it is initialized, no matter what NIB it is on.
Trouble is, neither the (id)init or the (id)initWithFrame:(CGRect)frame methods are getting called on the custom view.
Which method gets called on a UIView when it is instantiated from a NIB? I would just use the view controller and viewDidLoad method except that this particular view appears on a lot of different NIBs.
© Stack Overflow or respective owner