簡體   English   中英

iOS導航右欄按鈕項-對話框更改后的圖標

[英]iOS Navigation Right Bar Button Item - icon changed after dialog

我在“界面”構建器中設置的導航欄中有漢堡包圖標。

右欄按鈕-界面構建器

我有多個控制器,一切看起來都還不錯。 問題是當我顯示警報對話框時:

class func showSimpleAlert(parent:UIViewController, title:String, message:String) {
    let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert)
    alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
    parent.presentViewController(alert, animated: true, completion: nil)
}

然后將圖標更改為此:

漢堡圖標問題

這是為什么? 為什么我到那條線?

我的漢堡包圖標的大小為45×34,並且在Xcode Image Assets中包含它。 感謝幫助

我遇到了同樣的問題。 解決方案:刪除“項目”(第一張圖片中的標題字段)會有所幫助。

暫無
暫無

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

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