Set Maximum Length of String in UITextField

September 3, 2010

This is actually pretty simple to do. First off I would make sure you tell your Application you want to make use of the UITextFieldDelegate functions otherwise it won’t work. To do that simply Append <UITextFieldDeletegate> to your header file, here’s an example of how to do that: sample.h: [php]@interface SampleViewController : UIViewController <UITextFieldDelegate> { […]