This is simple code of my simple batteryLevel Test app.
- (void)viewDidLoad
{
[super viewDidLoad];
UIDevice *device = [UIDevice currentDevice];
device.batteryMonitoringEnabled = YES;
mLabel.text = [NSString stringWithFormat:@"%0.5f",device.batteryLevel];
}
This is the image of my app, hope you can see the status bar battery level and my application battery level. I don't know why these levels are different....? one is 99% and apps level is 0.95 which is actually 95%