UIButton *accountButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
accountButton.frame = CGRectMake(10, 40, 100, 45); // size and position of button
[accountButton setTitle:@"label" forState:UIControlStateNormal];
accountButton.contentVerticalAlignment = UIControlContentVerticalAlignmentBottom;
typedef enum {
UIControlContentVerticalAlignmentCenter = 0,
UIControlContentVerticalAlignmentTop = 1,
UIControlContentVerticalAlignmentBottom = 2,
UIControlContentVerticalAlignmentFill = 3,
} UIControlContentVerticalAlignment;
typedef enum {
UIControlContentHorizontalAlignmentCenter = 0,
UIControlContentHorizontalAlignmentLeft = 1,
UIControlContentHorizontalAlignmentRight = 2,
UIControlContentHorizontalAlignmentFill = 3,
} UIControlContentHorizontalAlignment;