我正在使用一個具有大量警報視圖的舊應用程序。此應用程序在iOS7中工作正常,但在iOS8中警報視圖按鈕文本顏色變白並且不可見。功能明智,它也在iOS8中工作。 請參閱屏幕截圖瞭解更多信息。 iOS 8中的UIAlertView按鈕標題變白白
0
A
回答
1
你試試這個代碼
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Alrt" message:@"This is the Message" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *cancelAction = [UIAlertAction
actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel action")
style:UIAlertActionStyleCancel
handler:^(UIAlertAction *action)
{
NSLog(@"Cancel action");
}];
UIAlertAction *okAction = [UIAlertAction
actionWithTitle:NSLocalizedString(@"OK", @"OK action")
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action)
{
NSLog(@"OK action");
}];
[alertController addAction:cancelAction];
[alertController addAction:okAction];
[self presentViewController:alertController animated:YES completion:nil];
}
+0
但它可從iOS8獲得。 – 2014-10-08 07:24:02
+0
我知道與UIAlertController,但我只想文本顏色問題。這個問題只發生在iOS8中。 – Deepak 2014-10-08 07:25:07
+0
您需要哪種顏色 – 2014-10-08 07:34:25
相關問題
- 1. iOS 8 UIAlertView不顯示按鈕
- 2. UIAlertView其他按鈕標題
- 3. 在UIAlertView iOS 8 beta 5中無標題的UI問題
- 4. UIAlertView按鈕標記
- 5. IAP iOS UIAlertView取消按鈕
- 6. 如何在iOS 8上顯示沒有按鈕的UIAlertView?
- 7. Rails獨白過濾器標籤按鈕
- 8. iOS 8:UIAlertView/UIAlertController不顯示文本或按鈕
- 9. UIAlertView按鈕事件問題
- 10. 空白菜單按鈕
- 11. IE7按鈕白色框架
- 12. SpriteKit場景在iOS 8上空白
- 13. IOS標籤沒有圖標的標題頂部的空白
- 14. WebView變白/空白
- 15. 標題之間的白線
- 16. 爲按鈕設置的圖像保持空白/白色
- 17. jQuery Cycle IE7 + 8問題 - 出現在JPEG上的白色標記
- 18. iOS - 空白塊
- 19. Android模擬器屏幕在按下按鈕後變爲空白
- 20. UIAlertController(iOS 8)中的動態按鈕
- 21. UINavigationBar得到白色的後退按鈕
- 22. 提交按鈕上的空白頁面
- 23. Python周圍的白色按鈕
- 24. 問題是空白/白
- 25. gmail登錄按鈕白色邊框,當使用標籤集中
- 26. iOS - 如何在按鈕標題中調用NSInteger變量?
- 27. 移動按鈕UIAlertView中
- 28. UIAlertView按鈕操作?
- 29. 如何清除iOS中UIAlertView中的UITextfield文本和Ok按鈕?
- 30. OpenX的白標
你定製UIAlerView的按鈕? – 2014-10-08 07:13:21
沒有..它的標準UIAlertView。 – Deepak 2014-10-08 07:16:43
你可以在這裏粘貼代碼嗎? – 2014-10-08 07:21:32