Andrespch
Andrespch

Reputation: 367

How does apple set the Delegates of the UIKit classes as Outlets?

I've been trying to find a way to set the delegates on my custom classes as Outlets so I can connect them via IB just like one does with an UIKit Class but I haven't been able to do this, is this even possible?

Upvotes: 0

Views: 39

Answers (1)

rckoenes
rckoenes

Reputation: 69469

Yes you will need to the IBOutlet keyword to the delegate property.

Like:

@property (nonatomic, assign) IBOutlet id <YourDelegateClass>   delegate;

Upvotes: 3

Related Questions