cocoa touch - Trapping general UI activity within an iPhone app -


I'm developing an iPhone app that chooses the Internet web service. If the iPhone is idle in the dock running its application every time, once every 15 seconds, once every 15 seconds, the voting rate will be reduced. If the user starts to rotate the screen or turn around the UI, then I need to start the rate of voting again for 20 seconds.

Is there a universal top-level event handler, where I can net any user activity?

If I do not propose user activity to capture any push and pop activity in 4 main feature usage points such as the NAV controller bar of my productivity app.

In your application representative, -applicationDidBecomeActive and -applicationWillResignActive Apply.
To control all user activity, also apply your custom UIWindow sub-class and override - (zero) sendEvent: (UIEvent *) event there method:

  - (zero) sendEvent: (UIEvent *) event {[Super send event: event]; ...}  

Edit: You receive UIDeviceBatteryStateDidChangeNotification (from SDK 3.0) to get a notification when the device is plugged in ) Can also hear / unplugged in power


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -