xcode - iOS Storyboard Layout - Constraint Query -
I am playing with Universal Design in Xcode and really like it.
While playing I can not seem to work out to get the same difference between certain objects.
In the above image, I have 3 X red bars must be uniformly placed inside the light blue color.
The best way I can make the red ball is in the center of the light blue scene and then fix the distance between the other red bars.
Is there any other way to get them out?
For example, if you have Uitoolbar, then you can just put all the items in the toolbar and then use the flexible space to distribute items equally.
Hope this will be prudent.
You can do something on the lines of: Keep the first in the center, and then two clear UIViews above Middle bar to fill the place between the bottom and below. And then the top and bottom bars can be centered on those clear UIViews (centered in vertical containers).
You can do anything similar to what you need to do with Toolbar. That is, keep in mind the 5 clear thoughts between and outside the three bars, and then set them for the same height, it will force three times to move evenly.
Comments
Post a Comment