Reputation: 77626
I have a Custom UIView that I want to initialize from a nib. I don't have access to the name of the nib, all I have is an instance of UINib.
How can I initialize my UIView using this UINib object?
I don't want to use loadNibNamed method in NSBundle
Upvotes: 0
Views: 1700
Reputation: 16861
If the UINib
object already exists, send it an -instantiateWithOwner:options:
message.
Upvotes: 2