The height of the view is h. We have to divide the view into 10 equally sized pieces, so each piece is h/10. Now, if the height of each label is h/10. I will number the ten regions as 0 through 9. If want to put a label in region i, i regions above me, and they will each take a height of h/10, so above me there is a height of i*h/10. If I want my label centered my region, the region is h/10 high, my label is 50 high, so h/10-50 unused space above and below my label, since my is centered, half of that should be the label, so that's (h/10-50)/2. So, adding the two up, the y location for my label is (h/10-50)/2 + i*h/10. Remember that y is the distance between the top of the view and the top of the label and x is the distance between the left of the view and the left of the label.