ios - Perform action on return key down -
How can I do an action on the press down of return key, do not press above? Alternatively, how can I come up with the Edit: For the second question, what happens here: The pointer should start animating first, but it should be Use UIControlEventTouchUpInside for later questions. For example ... Sleep () is not working because performance is updated only after main thread return, at least I think this is the reason. But a good solution is NSTimer ... textFieldShouldReturn: only allows the press.
UIActivityIndicatorView one
at the beginning of IBAction on the button? Even if it is called before, it is not animated until the end, and at that time, it is said to stop animating.
- Pressed (IBAction) button: (ID) Sender { [Indicator startup]; // do stuff ... sleep (3000000) // to describe the problem, wait 3 seconds)
Animation starts after sleep () . How can I revive it before anything else?
.... [yourButton addTarget: Self-action: @electrator (for the touchupup control events): UIControlEventTouchUpInside]; - (zero) done touchup {[yourUIActivityIndicatorView Getting Started]; }
[NSTimer scheduled timer with time interval: 3.0 targets: self selector: @sillector (targMtod :) userInfo: zero repeats: no];
Comments
Post a Comment