UIViewController.automaticallyAdjustsScrollViewInsets doesn't document which subview it observes
Originator: | joshavant | ||
Number: | rdar://23666075 | Date Originated: | 25-Nov-2015 12:05 PM |
Status: | Open | Resolved: | |
Product: | Documentation | Product Version: | iOS 9.1 |
Classification: | Reproducible: | Always |
Summary: In practice, UIViewController.automaticallyAdjustsScrollViewInsets will only check the root subview of the view controller's .view property. (If this is a UIScrollView subclass, it will apply its behavior to the subview. Otherwise, it will not drill down the subview hierarchy any further.) This seems like a pretty important thing to document, in the discussion of this API. Steps to Reproduce: 1. Try to get UIViewController.automaticallyAdjustsScrollViewInsets functionality to apply to a scroll view that is NOT the root subview of a UIVC's .view 2. Realize it isn't working 3. Check the documentation of automaticallyAdjustsScrollViewInsets to learn about its behavior Expected Results: The discussion for UIViewController.automaticallyAdjustsScrollViewInsets explains that it only considers the root subview of a UIViewController's .view Actual Results: The discussion for UIViewController.automaticallyAdjustsScrollViewInsets does NOT explain that it only considers the root subview of a UIViewController's .view I continue to debug it from different angles, to no success. Version: UIViewController > automaticallyAdjustsScrollViewInsets https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/#//apple_ref/occ/instp/UIViewController/automaticallyAdjustsScrollViewInsets Notes: Configuration: iOS 9.1 Attachments:
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!