现在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) 如何更改UIAlertAction已添加到按钮的按钮的颜色UIAlertController?
我可以改变颜色UIAlertController吗?标准颜色是蓝色.它与标准的iOS应用程序非常接近.如果它是可定制的?我怎样才能改变这个颜色?例如按钮颜色.
谢谢!