2

UILabel が内部にある UIButton があり、テキストの上部が切り取られています。

コードは次のようになります。

[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 のフレームまたは境界を変更しても、私が知る限り、これは変更されないようです。どんな助けでも大歓迎です!

4

0 に答える 0