override func viewDidLoad() {
super.viewDidLoad()
self.title = ""
let backButton = UIButton.init(frame: CGRect(x:0,y:0,width:20,height:15))
backButton.setImage(UIImage.init(named: "BackButton.png"), for: .normal)
backButton.backgroundColor = UIColor.clear
backButton.addTarget(self, action: #selector(backToPrevious), for: .touchUpInside)
self.navigationItem.leftBarButtonItem = UIBarButtonItem.init(customView: backButton)
self.view.backgroundColor = UIColor.white
// Do any additional setup after loading the view.
}
func backToPrevious() {
self.navigationController?.popViewController(animated: true)
}
super.viewDidLoad()
self.title = ""
let backButton = UIButton.init(frame: CGRect(x:0,y:0,width:20,height:15))
backButton.setImage(UIImage.init(named: "BackButton.png"), for: .normal)
backButton.backgroundColor = UIColor.clear
backButton.addTarget(self, action: #selector(backToPrevious), for: .touchUpInside)
self.navigationItem.leftBarButtonItem = UIBarButtonItem.init(customView: backButton)
self.view.backgroundColor = UIColor.white
// Do any additional setup after loading the view.
}
func backToPrevious() {
self.navigationController?.popViewController(animated: true)
}