Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UITextField - iPhone Development Wiki

UITextField

From iPhone Development Wiki
Revision as of 02:33, 18 November 2013 by Jon889 (talk | contribs) (hooking uitextfield)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UITextField is a single-line edit control.

As a progress bar

Signature -(void)setProgress:(float)progress;
Available in 2.0 —

The method -[UITextField setProgress:] can be used to add a partial light blue background to the text field as a progress indication, just like MobileSafari. The progress value must be between 0.0 and 1.0.


Text changed

Signature -(char)keyboardInputChanged:(id)arg;

The method -[UITextField keyboardInputChanged:] can be hooked to detect text changes (after the changes have been made), this includes changes not made by the keyboard (cut and paste)

References