我有一个内部有UILabel的UIButton正在切断我文本的顶部, example
代码如下所示:
[self.yellowButton setTitle:@"Yellow" forState:UIControlStateNormal];
[self.yellowButton.titleLabel setFont:[UIFont fontWithName:@"Mission Script" size:52.0]];
[self.yellowButton setTitleEdgeInsets:UIEdgeInsetsMake(24.0, 0.0, 14.0, 0.0)];
就我能说的而言,改变UILabel的框架或边界似乎并没有改变这一点。任何帮助都将受到巨大的赞赏!