I'm trying to figure out how to center vertically a view using Auto-Layout. I'm new to this technology so it makes me some problems... This is my controller in Interface Builder:
The gray part is the superview and it contains a custom view (the yellow one) and a label (the red one); the yellow view is fixed at the bottom of the superview and it has fixe height and width. The red view has fixed width and height, too.
My goal is to center vertically my red view in the visible part of the gray view, whose visible height is superview.height - yellowView.height
.
How can I do that?
Thank you so much!