Can xib(nib) used to a father class?
Hi,
I have 3 subclasses inheriting from a UIVewController, in which there is an imageview and a table view, currently I have 3 xibs for each of the subclass, and I want to replace the 3 xibs by 1, for example I create MyViewController class including an imageview and a table view, then create a xib for this class, and let the 3 subclass inherit from MyViewController, is it ok? Did anyone tried this?
myClass1 : myUIViewController
myClass2 : myUIViewController
myClass3 : myUIViewController
create myUIViewController.xib in interface builder.
When I create myClass1 or 2 or 3, will the UI interface of myUIViewController be shown?
Thanks
Zhimakaimen
|