[英]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.