Quote:
Originally Posted by alexstuckey
HI, I'm brand new to iPhone SDK and Objective-C and I can't work out how to limit the number of characters in a UITextField. When I searched it on the internet I found a few answers but they all said to put some code in the UITextFields delegate, but I don't have a UITextField delegate. And then I wondered how do you implement it (i.e. in Interface Builder cntrl-drag to delegate function). Thank you.
|
you can use like this functionality
on click
if(textfield.length == 4)
{
code
}
else
{
Alert
}
Thanks you