In my app i have one text field and when i click on that text field numeric keypad will open.now my question is how to convert that value in decimal format while typing as i have to insert only decimal values and in numeric keypad dot(.)is not given.so when user type in textfield it automatically convert that value into decimal format.
Suppose if user type 5078 it will show 50.78 format while typing.
You can simply multiply the number by “0.01” (for two decimal places) and use the string format “%.2lf“. Write the following code in
textField:shouldChangeCharactersInRange:withString:method.