|
|
#1 |
|
Best Way to Monitor Battery Level
I'm developing an iOS that for display reasons requires full screen, but I'd still like to have a battery indicator present on screen for the user.
One simple solution is to create a timer that updates the battery indicator on screen every X number of seconds such as: Code:
[[UIDevice currentDevice] setBatteryMonitoringEnabled:true]; [NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(setBatteryIndicator) userInfo:nil repeats:YES]; Last edited by SandboxGeneral; Nov 11, 2012 at 12:35 PM. Reason: Added code tags |
|
|
|
0
|
|
|
#2 |
|
Me thinks you might want to post this over here ->
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 03:00 AM.






Linear Mode
