簡體   English   中英

iOS 7 UIAlertView按鈕不可見

[英]iOS 7 UIAlertView Button is not visible

我在iOS7中使用UIAlertview遇到了麻煩。

我正在使用基本的UIAlertview初始化代碼,但cancelButtonTitle文本只是未顯示。

碼:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Feeds Saved"
                                                message:@"Feeds are saved on My Feeds Tab."
                                               delegate:nil
                                      cancelButtonTitle:@"OK"
                                      otherButtonTitles:nil];
alert.alertViewStyle = UIAlertViewStyleDefault;
[alert show];

屏幕截圖:

在此處輸入圖片說明

任何想法?

更新:

我仍然對此問題有疑問。 我可以單擊頂部,但不能顯示消息。 代碼可以在iOS6.1中正常運行,但不能在iOS7中運行

http://i.imgur.com/lbrTQzO.png?1

代碼很好。

從模擬器/設備中刪除應用程序,清理工作區/項目,然后再次運行。

謝謝大家的回答。

[UITableView appearance].contentInset = UIEdgeInsetsMake(-36, 0, -36, 0);

我正在嘗試手動設置分組的tableview的頂部和底部邊距,因為我正在將舊應用程序更新為iOS7,而UiAlertView受該行代碼的影響。

希望這對其他人有幫助。

:)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM