Friday, March 13, 2015

iOS - Xamarin - Prevent entry of characters / Allow only numeric input in UITextField

textField.ShouldChangeCharacters = (UITextField textField, NSRange range, string replacementString) => { int test; return replacementString.Length == 0 || int.TryParse(replacementString, out test); };

2 comments:

  1. It will help us a lot in adding this article on how to Prevent entry of characters / Allow only numeric input in UITextField.

    Hire now Xamarin Developer to develop your Cross platform mobile apps.

    ReplyDelete
  2. Really Happy to say your post is very interesting. Keep sharing your information regularly for my future reference. Thanks Again.

    Pen testing services
    Vulnerability assessment services
    Load Testing Services
    Mobile app testing services

    ReplyDelete