What\'s the best way to center a label in a UIView? If you do something such as
UIView
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(view.fr
To position any child horizontally centered in a parent you would calculate its position like so;
childX = (parentWidth - childWidth) / 2
(This also applies to height).