Skip to content

Instantly share code, notes, and snippets.

@kishikawakatsumi
kishikawakatsumi / gist:6072953
Created July 24, 2013 18:03
Set Max Character Length UITextField (works with Japanese input method)
...
[textField addTarget:self action:@selector(editingChanged:) forControlEvents:UIControlEventEditingChanged];
...
#define MAXLENGTH 3
- (IBAction)editingChanged:(id)sender
{
UITextField *textField = sender;