Unable to set/reset UIScreen brightness in applicationWillResignActive
| Originator: | emarschn | ||
| Number: | rdar://10497236 | Date Originated: | 29-Nov-2011 10:22 AM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 5.0.x |
| Classification: | UI/Usability | Reproducible: | YES |
Summary: When I set the screen brightness in my app, I'd like to reset the screen brightness to the value it was when my app started. Currently, this is not working. Steps to Reproduce: Create a simple app that sets the screen brightness. Use the brightness property of UIScreen to: a) save the current brightness value when the app starts b) set the UIScreen brightness to some new value (like 0.0, so it's obvious) In applicationWillResignActive, set the screen brightness back to the value you stored in a) above. Launch the app, let it change the brightness of the screen, then press the Home button. Expected Results: I would expect the brightness to be restored to the original value stored in a) Actual Results: Brightness is not restored Regression: Notes:
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!