I have a profile that is embedded in a navigation controller. When I create a segue that goes to another view controller (also embedded in a navigation controller), I get the screen below. I used to seeing the back button that, in this case, would say "< Profile" but all I see is a blank nav bar with no back button, SOS!
Can anybody help me fix this issue? I can't seem to find any help!
This is the code I have written for the segue to go from the profile view controller to the followers view controller, which is the one with the blank nav bar.
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "toFollowers" {
var profileVC: FollowersViewController = segue.destinationViewController as! FollowersViewController
profileVC.followers = true
}
}
title
. That is the text that is shown on the back button when the child view controller is visible. If that text isnil
there will be no back button. Here is the same question – Nazir