I have designed a nice custom control CustomUIView as a subclass of UIview, with a nice initialiser that takes in 8 parameters. I made it to be the designated initializer to make sure, any user will provide all the 8 parameters correctly.
After few days, I wanted to reuse that control in a different project where nibs are used.
I added a basic UIView into the canvas of one of the NIBs and changed The Custom class option to my CustomUIView class. But I immediately realised my nice initializer is of no use, since it is not called at all.
What would you recommend to do about this? I want to ensure that
- all the parameters are taken in but at the same time
- I want basic positioning of that custom control in IB.
Why not build on top of the standard
UIViewControllerinitializer for NIBs then?