Nav Link On

iPhone Dev Forums > General Development > SDK Coding Help > Limit Character Input to UITextField's Visible Region

Reply

 

LinkBack Thread Tools Display Modes
Old 06-23-2009, 02:56 AM   #1 (permalink)
Junior Member
Default Avatar
 
Join Date: May 2009
Posts: 4
Question Limit Character Input to UITextField's Visible Region

I have a UITextField. Is it possible to limit the # of characters the user types based on the visible width of the text field?

So let's say the textfield is 250 pixels wide. Using a 14pt system font the # of characters allowed in the visible region of the text field (no scrolling) will vary due to the proportional font. I would like the input to stop once the user has reached the edge of the text field.

Thanks for the help.
quantass is offline   Reply With Quote
Reply

iPhone Dev Forums > General Development > SDK Coding Help


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC1