(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
- Official reference: UITextField.
- Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UITextField2.h