现在iOS8上的过时UIActionsheet和UIAlertview定制上iOS7工作不发生作用了.到目前为止,我所知道的唯一定制是色彩.我需要的是改变标题的字体大小和样式,我没有找到任何方式使用新的UIAlertAction.
已经提到了这个,但我仍然希望有一种方法可以至少改变标题大小和字体.
为您提供我的一些代码 UIAlertAction
UIAlertController * alertActionSheetController = [UIAlertController alertControllerWithTitle:@"Settings"
message:@""
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction * aboutTheAppAction = [UIAlertAction actionWithTitle:@"About the App"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action){
NSLog(@"About the app");
[self openAbout];
}];
[alertActionSheetController addAction:aboutTheAppAction];
[self presentViewController:alertActionSheetController animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud) https://www.safaribooksonline.com/library/view/ios-8-swift/9781491908969/images/ispc_0113.png
在上图中如何更改"完成","其他动作"的字体大小和颜色?以及如何更改"标题"和"消息"的字体大小和颜色?
谢谢.