Volodymyr B.
Volodymyr B.

Reputation: 3441

How to make done button is active in modal sheet?

Example, Done is not active by enter

enter image description here

Thanks a lot!

Upvotes: 1

Views: 122

Answers (1)

Moritz
Moritz

Reputation: 4771

If you are using interface builder, you can create an outlet for the "Done" button and use [myButton highlight:YES].

See here, under the "highlight:" method, for doc reference

EDIT: To make the button respond to the "return" key, you can use [myButton setKeyEquivalent:@"\r"].

Upvotes: 3

Related Questions