是否可以在 UITableView
中自定义删除按钮的字体?
最佳答案
在UITableViewCell
的删除按钮中使用系统字体。因此,如果您想更改应用程序中的系统字体,只需重写 -systemFontOfSize:(CGFloat)fontSize
:
创建类别UIFont+System
并将此代码放入.m
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"
+ (UIFont *)systemFontOfSize:(CGFloat)fontSize {
return [UIFont fontWithName:@"NameOfYourFont" size:fontSize];
}
#pragma clang diagnostic pop
关于ios - UITableViewCell 更改删除行按钮的字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26202045/