Hey I am using a UITextField to take float value inputs. I am facing a difficulty as I want to restrict during run time, the precision of the values that a user can enter to 2 decimal places. For eg:
Values like 1.11,11.11, 111.11, 1111.11 are permissible and Values like 1.123, 1.111, 1.1111 are not
How could I achieve this without writing too much code. So basically as the decimal point precision hits 2 the user should not be able to increase it to 3. The input field should stop editing there.