New Interface Builder tools for constraints confusing to users

Originator:wangjammer5
Number:rdar://14201747 Date Originated:19-Jun-2013 12:44 PM
Status:Open Resolved:
Product:Developer Tools Product Version:5
Classification:Serious Bug Reproducible:Always
 
Summary:

The new IB tools for drag-in-a-direction-to-create-constraints and related constraints warning and repair mechanisms are very promising, but due to the fully expected bugs in the betas, and some limitations are very hard or impossible to use to achieve relatively simple UI tasks.

Attached is a project showing a Messages.app-like UI with a full screen UIScrollView containing two views - another UIScrollView occupying the top part and  a fixed height view "bar" at the bottom. 

The intention is that on any screen and orientation the bar and the "content area" scroll view will automatically fill the available width, and the nested content scrollview will use all the available height after subtracting the height of the fixed height "bar" view at the bottom.

Setting this up in IB requires using the "Pin" menu options because of the direction "smarts" of the ctrl-drag mechanism (IMO this is flawed and should be adapted to always allow all available constraints, perhaps via a "Show more" option).

Steps to Reproduce:

Unzip the project, open it in Xcode 5 beta 1, edit the iPhone storyboard and notice there are layout warnings on the bar view, indicating that the Y coordinate is not going to work out right. Preview shows it ok.

Expected Results:

There should not be any constraints problems here. the bar view is pinned to the superview for leading, bottom and trailing, and has a fixed height. Its location would appear to be unambiguous.

Actual Results:

There is a layout warning that the Y coordinate is not correct.

Regression:

N/A

Notes:
Provide additional information, such as references to related problems, workarounds and relevant 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!