Reputation: 2610
Use-case:
1. Create a '.XiB' based UI control consisting of several basic UI elements
2. Embed the control @ [1] in eg. a UIViewController
With C#/.NET it is possible to create WinForm controls with specialized UI and then to embed them in other controls, is there an equivalent in Cocoa @ iPhone ?
Any help will be appreciated.
Upvotes: 0
Views: 145
Reputation: 8944
Place UIView
on one of xib views, select it and go to Identity Inspector and change the class to yours:
Note, with this approach the custom view is not drawn at Xib editor, you'll see it as UIView
there. You'll want to prepare the outlets for the custom view "several basic UI elements".
Upvotes: 1