View Full Version : how to call an action every time user taps on Space Key on the keyboard?
alexandergre
Aug 6, 2009, 09:14 PM
its like this:
when the user taps on space button on the keyboard I want to call this action:
UItextfield.text=@"";
in other words:
UItextfield.text.clear(); c#
dejo
Aug 6, 2009, 11:34 PM
Probably could check inside the textField:shouldChangeCharactersInRange:replacementString:
delegate method.
alexandergre
Aug 7, 2009, 10:30 AM
Probably could check inside the textField:shouldChangeCharactersInRange:replacementString:
delegate method.
You are great dude...
but I found another method which is much simpler.
I connected the Event Editing changed to an IBAction.
IBAction:
string input = textfield.text
int a = textfield.text.lenght
if(input[a] isequaltoString @" ")
{The code to call goese here
textfield.text=@"";
} :p
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.