相关疑难解决方法(0)

是否可以编辑UIAlertAction标题字体大小和样式?

现在iOS8上的过时UIActionsheetUIAlertview定制上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)

objective-c uialertview uiactionsheet ios ios8

9
推荐指数
1
解决办法
8808
查看次数

如何在UIAlertController中更改UIAlertAction的字体大小和颜色

https://www.safaribooksonline.com/library/view/ios-8-swift/9781491908969/images/ispc_0113.png

在上图中如何更改"完成","其他动作"的字体大小和颜色?以及如何更改"标题"和"消息"的字体大小和颜色?

谢谢.

iphone ios uialertcontroller uialertaction

3
推荐指数
1
解决办法
2万
查看次数