Calling topLayoutGuide breaks UITableViewController scrolling
| Originator: | luke | ||
| Number: | rdar://15251366 | Date Originated: | 17 Oct 2013 |
| Status: | Duplicate (14860969) | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0 |
| Classification: | Serious bug | Reproducible: | Always |
Summary: Simply referencing the topLayoutGuide property within a UITableViewController makes it impossible to scroll the table beyond what is currently on screen (as if the content size was == to screen bounds). Steps to Reproduce: 1. Start with an empty Xcode template 2. Create a UITableViewController subclass, initialise it and set it as the window's root view controller. 3. In viewDidLayoutSubviews, call self.topLayoutGuide (you only need to call it, you don't need to do anything with it). 4. Observe that scrolling is now broken. Expected Results: Scrolling should not be broken. Actual Results: Version: iOS7 GM Notes: The attached sample project contains some code not relevant to this bug as I have been using it to reproduce and report other bugs related to search display controllers. The project is configured to be built and run and demonstrate the bug. Please ignore the code relating to: * Search bars, search display controllers * Custom containment controller Configuration: Attachments: 'SampleProject.zip' was successfully uploaded.
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!
Filed as a dupe of rdar://14860969
Another report of this from the dev forums: https://devforums.apple.com/message/906629#906629
It appears that the table view's content size is being set to CGSizeZero when topLayoutGuide is called.