Auto-layout is driving me crazy!

Auto Layout has worked fine for me. On a layout with multiple labels in a row you need to account for changes in the width due to device rotation and different size devices. One way is to make one of the labels variable width to adjust automatically to fill the space. I had one case where all the labels needed to be the same width and change spacing as the display changed. I had to do this programmatically in code but it worked fine.

[code]// Spread UPP labels evenly across width of view
Dim w As Integer = (Self.ContentSize.Width - 40)/6 'Get width of view minus standard gaps divided by number of labels across

Dim width As New iOSLayoutConstraint(STRLabel, _
iOSLayoutConstraint.AttributeTypes.Width, _
iOSLayoutConstraint.RelationTypes.Equal, _
Nil, _
iOSLayoutConstraint.AttributeTypes.None, _
1.0, _
w)
Self.AddConstraint(width)

etcetera[/code]

7/31/17

Well, after my usual vent, I was finally able to get my iOS layout done. I do wish there was a disable feature on the auto layout for rough design work though. I found for me the best way was to drop a item on the canvas, turn off eveyr auto alignment element, drop the next and do the same, continue thisuntil all my elements were in, then go back and manually add the auto features. As someone said it gets easier…

I hope to get my code in this week.
JMW

<https://xojo.com/issue/45436>

Is this a link Norman, or were do I find it? Yes, I am mostly clueless

Not being Norman, but taking the freedom to answer your question:
That’s a link for the feedback app you find under http://xojo.com/download/extras.php