I have tried to get correctly battery level. But that value is not like value in status bar of iphone.
by code use UIDevice:
[[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];
[[UIDevice currentDevice] batteryLevel];
please someone help me! I need get correctly battery level that like in status bar imdimatery.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…