views:

72

answers:

1

I have a UILabel that is a subview of a larger UIView. Is there a way to keep the text inside the UILabel proportional to the parent UIView so that when the parent changes size, either smaller or larger, the font size for the text in the UILabel will grow and shrink proportionally?

+1  A: 

I think there is no easy way but to calculate how much the parent view went bigger or smaller and taking that quantity making the font smaller or larger. For example if the parent view is smaller by 50 pixels wide then making the font 5 pts smaller. Hope it's helpful

SEK117