Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS导航右栏按钮项目-对话框后图标更改_Ios_Swift_Ios8_Uinavigationbar_Uibarbuttonitem - Fatal编程技术网

iOS导航右栏按钮项目-对话框后图标更改

iOS导航右栏按钮项目-对话框后图标更改,ios,swift,ios8,uinavigationbar,uibarbuttonitem,Ios,Swift,Ios8,Uinavigationbar,Uibarbuttonitem,我在Interface builder的导航栏中设置了汉堡图标 我有多个控制器,一切看起来都很好。问题是当我显示警报对话框时: class func showSimpleAlert(parent:UIViewController, title:String, message:String) { let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert) alert.a

我在Interface builder的导航栏中设置了汉堡图标

我有多个控制器,一切看起来都很好。问题是当我显示警报对话框时:

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图像资源中有它。谢谢你的帮助

我也遇到了同样的问题。
解决方案:删除“项目”(第一张图片中的标题字段)会有所帮助。

您是否看到了apple iOS人机界面指南中的图标和图像大小部分?()你能让我们看看你的照片吗?三年后在一个老项目中<代码>grep-nHr“Item\”。成功了。^\uu^。我不知道为什么你的回答没有被标记为被接受。顺便说一句,这只出现在iOS上