Skip to content

Instantly share code, notes, and snippets.

@foxanna
Created October 9, 2018 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxanna/1af994ccaff6515e176b224cd714fa04 to your computer and use it in GitHub Desktop.
Save foxanna/1af994ccaff6515e176b224cd714fa04 to your computer and use it in GitHub Desktop.
using Foundation;
using UIKit;
using Xamarin.Forms;
...
public class DatePickerDelegate : NSObject, IUITextFieldDelegate
{
[Export("textField:shouldChangeCharactersInRange:replacementString:")]
public bool ShouldChangeCharacters(UITextField textField, NSRange range, string replacementString) =>
false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment