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