Skip to content

Instantly share code, notes, and snippets.

@twolfprogrammer
Created July 31, 2016 04:52
Show Gist options
  • Save twolfprogrammer/7829a87f705e4cf0974c62652655931e to your computer and use it in GitHub Desktop.
Save twolfprogrammer/7829a87f705e4cf0974c62652655931e to your computer and use it in GitHub Desktop.
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(Entry), typeof(MyCoolApp.iOS.CustomEntryRenderer))]
namespace MyCoolApp.iOS {
public class CustomEntryRenderer : EntryRenderer {
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) {
base.OnElementChanged(e);
if (this.Control != null) {
this.Control.AutocapitalizationType = UIKit.UITextAutocapitalizationType.None;
this.Control.AutocorrectionType = UIKit.UITextAutocorrectionType.No;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment