旋转按钮时无法解决此问题。
这是我的代码:
newButton.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"btn_maintab_60x146.png"]];
newButton.frame = CGRectMake(0, 0, 60, 146);
[newButton.titleLabel setFont:[UIFont fontWithName:@"Baskerville-SemiBold" size:21.0f]];[newButton.titleLabel setFrame:CGRectMake(0, 0, 60, 146)];
[newButton.titleLabel setTransform:CGAffineTransformMakeRotation(M_PI_2)];
[newButton setTitle:title forState:UIControlStateNormal];
按钮变成了这样: