Autolayout improperly places the top guide in the master view of a UISplitViewController

Originator:timothy.sanders
Number:rdar://16384962 Date Originated:2014-03-20
Status:Duplicate of 14791829 which is closed Resolved:
Product:iOS Product Version:7.1
Classification:Other Bug Reproducible:Always
 
A UISplitViewController that has a UINavigationController for the master and a UIViewController for the root does not correctly place the top Guide underneath the navigation item.

Steps to Reproduce:
1. Download the sample code.
2. Build & run the app.
3. Run the app on an iPad (or simulator) in portrait orientation.
4. Tap the Master button.
5. Notice the red toolbar is under the navigation bar.
6. Rerun the app in landscape.
7. Notice the red toolbar is now correctly placed.
8. Rotate the app into portrait.
9. Tap the Master button.
10. Notice the layout is different than the initial run.

Expected Results:
The red toolbar is constrained to the view's Top Layout Guide. This should be below the navigation bar, regardless of orientation.

Actual Results:
If the app is launched in portrait orientation the toolbar will be approximately 50% under the navigation bar.

Version:
iOS 7.1

Notes:
The sample is also available on Github: https://github.com/HiddenJester/SplitView-Toolbar-Autolayout-Test

Configuration:
iPad Air running 7.1. iPad simulator running 7.1 I didn't explicitly run this test in iOS 7.0 but I'm confident the bug was present in 7.0 as well.

Attachments:
'SplitView+Toolbar Autolayout Test.zip' was successfully uploaded.

This was marked as a dupe of 14791829 on 2014-04-02.

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!