项目中用到了actionSheet,但是因为文案设计的不太好,导致发生了这种情况
请教大家,如何才能更改actionSheet中文字的大小呢?
试试
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet {
for (UIView *_currentView in actionSheet.subviews) {
if ([_currentView isKindOfClass:[UILabel class]]) {
[((UILabel *)_currentView) setFont:……];
}
}
}
参考了这里。
不过我没有试过,不知道在哪个版本的 iOS 上管用。