aryaxt
aryaxt

Reputation: 77626

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

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

Answers (1)

NSResponder
NSResponder

Reputation: 16861

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

Upvotes: 2

Related Questions