A picture tells more than a lengthy speech :
I want to align vertically the center of the red part with the middle of the black part. I have no constraint of contai
Try doing the opposite. Anchor the smaller view first and place the other view accordingly. Something like this: