kolinko
kolinko

Reputation: 1663

How to create custom IBActions in a custom class?

I'm creating a new class - UIMyTextView that inherits from UITextView.

I'd like this class to send new kinds of events, that I will then connect using IBuilder to the appropriate IBActions.

How to do that?

Upvotes: 1

Views: 76

Answers (1)

Andriy
Andriy

Reputation: 2796

UITextView does not inherit from UIControl. This means that it can't be considered as UI control that can send actions to other responders using UIControlEvent.

See UIControl.h for more information.

Upvotes: 2

Related Questions