Displaying an UIViewController modally from one of the View Controllers(which are in a Navigation controller) code :
self.present(viewController, animated: true, completion: nil)
Within the modal ViewController, a custom Navigation Bar along with navigation item is added. In which, i'm trying to display the Back Button.
let backButton = UIBarButtonItem()
backButton.title = "Back"
self.navigItem.backBarButtonItem = backButton //self.navigItem is the custom Navigation Item
Is there something im missing here?
thanks in advance, Rajesh