I am using UITextField and i want that should take character in the format of xx-xx-xxx only numbers.
any help ?
Implement your logic inside textField:shouldChangeCharactersInRange:replacementString: which is a delegate method.
textField:shouldChangeCharactersInRange:replacementString: