I\'ve been developing an iOS app and have been having issues with using an image as the left bar button item in the navigation bar. I have attempted this in the following wa
Updated for Swift 5:
let image = UIImage(named: "iconClose") let button = UIBarButtonItem(image: image, style: .plain, target: self, action: #selector(self.cancel)) navigationItem.leftBarButtonItem = button