Use-case:
- A Xib is defined with a single simple UIView
- A custom view class was created ( inheriting from UIView )
- In order to change the class used for the view defined @ [1] I change the XiB view identity from UIView to ~MyCustomView~
Problem:
I was expecting that ‘MyCustomView::initWithFrame’ will get called, apparently, it doesn’t!!
How can I make custom classes instantiated while the ‘XiB’ is being loaded ?
Any help will be appreciated.
you should override
initWithCoder:for initialization andawakeFromNibfor when view has all outlets and actions connected.