Reputation: 94
I want to fire an event when I am done editing a UITextField. I.e., when the user presses the return key. Currently the event can only be fired off by pressing a button I have on the main storyboard. Is it possible to fire this event off by pressing the enter or return button?
Upvotes: 0
Views: 660
Reputation: 89129
this.txtDefault.ShouldReturn += (textField) => {
// fire even or call method here
return true;
};
Upvotes: 1