UIImagePickerController with camera source mode with In-Call Status Bar has unexpected origin offset
| Originator: | azimin | ||
| Number: | rdar://34253549 | Date Originated: | 2017-09-05 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 10.3.3 |
| Classification: | UI/Usability | Reproducible: | Always |
Area: UIKit Summary: If you would present UIImagePickerController with sourceType == .camera on device where In-Call Status Bar is turned on then presented view would have 20 pt offset (but status bar is hidden). Because of this there would be part of UIWindow on the top (20 pt of it). Steps to Reproduce: 1. Set In-Call Status Bar to be turned in (start navigation route, phone call, microphone recording or anything else, that would show this bar) 2. Open application and show UIImagePickerController: ```swift let imagePickerController = UIImagePickerController() imagePickerController.sourceType = .camera self.present(imagePickerController, animated: true, completion: nil) ``` P.S. You can test only on device, because of camera requirement Expected Results: Because status bar is hidden, the should not be any top offset. So origin.y should be equal to 0. Actual Results: You would see 20 pt offset on the top (screenshots attached). And from 0 to 20 pt of top there would be UIWindow background color. Version/Build: Xcode 8.3.3 (also reproduced on Xcode 9 beta 6) iOS 10.3.3 (also reproduced on iOS 11 beta 8) Configuration: Any Files: Screenshots: https://imgur.com/a/qrwQX Project: https://github.com/azimin/UIImagePickerRadar-34253549
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!