there is, you need to use a formatter for that, you can even set the allowed characters to be inputted to the textfield. check NSFormatter if it is of any help, you can also extend the class to adjust to your needs.
________________________________ From: Jon Sigman <rf_...@yahoo.com> To: Cocoa Developers <cocoa-dev@lists.apple.com> Sent: Fri, March 4, 2011 10:29:23 AM Subject: Re: Setting a delegate on a UITextField Okay, part II: Is there a way to allow only a certain number of characters in a UITextField? Should this be done in the -textFieldDidEndEditing delegate callback, with an alert to the user, or just truncating the field, or ...? -Jon _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/pinkpoppy_sandianne%40yahoo.com This email sent to pinkpoppy_sandia...@yahoo.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com