Custom view in nib instantiated as parent type
Posted
by Ben Collins
on Stack Overflow
See other posts from Stack Overflow
or by Ben Collins
Published on 2010-06-11T14:46:38Z
Indexed on
2010/06/11
17:13 UTC
Read the original article
Hit count: 200
I've created a custom class inheriting from UILabel. I placed a UILabel in my nib and set the class of the label to my custom class. However, when the viewDidLoad
method is called, the view is of the class UILabel
instead of my custom class.
Any ideas?
© Stack Overflow or respective owner