Reputation: 6469
I need to put some buttons around the vertical center of the screen. As far as I know, there is no explicit way to achieve that, so I have thought putting a label, or something, hidden, and align the buttons using that label as a reference.
But, I am not sure if that is an acceptable way to do so.
Is there a way to do it without being "hacky"? Can I achieve my goal with some way I am not aware of? Or simply the hacky way is acceptable?
Thank you.
PS: Need to do it in auto layout, not programmatically.
Upvotes: 0
Views: 79
Reputation: 5130
I tried four buttons to make them around vertical center
The result on different screen is shown in pictures:
Rest of buttons are aligned with Button1
Upvotes: 1