Objective-C - Given a UINib instance how can I initialize my custom UIView?

1.6k views Asked by At

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

1

There are 1 answers

2
NSResponder On

If the UINib object already exists, send it an -instantiateWithOwner:options: message.