Limiting user input to a valid decimal number


#1

how to do this in nativescript? or how to implement this code in nativescript core?

https://stackoverflow.com/questions/26566844/limiting-user-input-to-a-valid-decimal-number-in-swift

I want to limit input, for example if is one dot in textField text, dont change textfield text when user press on dot again


#2

You will have to customize the delegate here

An example of customizing table view delegate is showcased here, you will have to follow similar steps to make it work for UITextFieldDelegate.