[UIDevice currentDevice].batteryLevel returns a different result than what is displayed on the status bar
| Originator: | james | ||
| Number: | rdar://15160048 | Date Originated: | 10/5/2013 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 7.0.2 11A501 |
| Classification: | Enhancement | Reproducible: | Always |
Summary: [UIDevice currentDevice].batteryLevel returns a different result than what is displayed on the status bar. For example, if the status bar reads "82%", the result from the .batteryLevel property will be 0.80000000... [UIDevice currentDevice].batteryLevel should return the actual battery level instead of 5% increments. Steps to Reproduce: Read the value from [UIDevice currentDevice].batteryLevel when the battery level displayed in the status bar is not at 5% interval. Notice the discrepancy. Expected Results: [UIDevice currentDevice].batteryLevel should return the same value that is displayed in the status bar. Actual Results: [UIDevice currentDevice].batteryLevel only displays 5% increments. Version: 7.0.2 (11A501)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!