Monday, 9 September 2013

Allowing single digit in UITextField in iOS

Allowing single digit in UITextField in iOS

I have a Verification ViewController, I get 4digit verification code by
SMS and I need to enter those code to login , I have created the
ViewController like this
As you can see four UITextEdit , I need to allow only single digit for
each UITextEdit ,
What i tried : I was trying to use shouldChangeCharactersInRange method ,
but its not getting called ,I don't know whats wrong, i think because
UITexEdit are in UITableView so it is not working .
Can Anyone suggest me how to solve this issue ..
thanks

No comments:

Post a Comment