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: Difference between revisions - iPhone Development Wiki

UITextField: Difference between revisions

From iPhone Development Wiki
(Created page with ''''UITextField''' is a single-line edit control. == As a progress bar == {{function signature |signature=-(void)setProgress:(float)progress; |firmware=2.0 — }} The method {{O…')
 
(hooking uitextfield)
 
Line 7: Line 7:
}}
}}
The method {{ObjcCall|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.
The method {{ObjcCall|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 ==
{{function signature
|signature=-(char)keyboardInputChanged:(id)arg;
}}
The method {{ObjcCall|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 ==
== References ==
* Official reference: {{sdklink|UIKit|UITextField}}.
* Official reference: {{sdklink|UIKit|UITextField}}.
{{IPFHeader|UIKit|3=2}}
{{IPFHeader|UIKit|3=2}}

Latest revision as of 02:33, 18 November 2013

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