Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alexandergre

macrumors member
Original poster
Jul 28, 2009
58
0
its like this:
when the user taps on space button on the keyboard I want to call this action:

Code:
UItextfield.text=@"";
in other words:
UItextfield.text.clear(); c#
 

alexandergre

macrumors member
Original poster
Jul 28, 2009
58
0
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.
Code:
IBAction:
string input = textfield.text
int a = textfield.text.lenght 
if(input[a] isequaltoString @" ")
{The code to call goese here
 textfield.text=@"";
}
:p
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.