This is what you need?


I did this by adding a view (called viewCenteredInLeftSection ) to your leftSection , and then adding a clock image and a label as subtasks with these limitations:
- Make
viewCenteredInLeftSection CenterX and CenterY equal to its supervision ( leftSection ). - Make
clockImage top, bottom, and leading edges equal to your supervisor ( viewCenteredInLeftSection ). - Make
label End viewCenteredInLeftSection equal to its supervision ( viewCenteredInLeftSection ). - Make
clockImage The final border at a standard distance from the label Leading Edge.

I have a problem resizing iOS UIViews in Interface Builder, so I made my example for OS X and I was able to do this completely in Interface Builder. If you are having problems creating the above restrictions in Interface Builder, let me know and I will send a code that will create them.
2014-08-26 Edit
Luda , here are the Xcode 5 output and embroidery menus, also available on the Xcode menu bar:


Below is an example of my example in Interface Builder. The blue view is the “parent view” from the original question, this view in which the image and label must be centered.
I added a green view (which I called viewCenteredInLeftSection ) as a subitem of the "parent view". Then I selected it and used the Alignment menu “Horizontal Center in Container” and “Vertical Center in Container” to create restrictions for determining its position.
I added an image of the clock as a subitem of viewCenteredInLeftSection , with restrictions determining its width and height. I selected the clock image and viewCenteredInLeftSection , then applied the restrictions using Align> Leading Edges, Align> Top Edges and Align> Bottom Edges.
I added the label as a subset of viewCenteredInLeftSection , positioning it as the standard distance in the Aqua space from the clock image. I highlighted the label and viewCenteredInLeftSection , then applied the constraints using Align> Trailing Edges.
It was a lot easier to create with Xcode 5 Interface Builder and Xcode 4.

John Sauer Feb 07 '13 at 15:32 2013-02-07 15:32
source share