I have hamburger icon in Navigation bar set in Interface builder.
I have it in multiple controllers and everything looks ok. The problem is when I show alert 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)
}
Then icon is changed to this:
Why is that? Why I get that line there?
Size of my hamburger icon is 45 × 34 and I have it in Xcode Image Assets. Thanks for help
I got the same problems. Solution: Remove the "item" (Title field in your first picture) will help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.