I just migrated my project to Swift 2, and everything works fine - except that even the simplest segments do not have a return button. Here is the preparation for the segue function that I am using:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. if segue.identifier == "showExercise" { if let nav = segue.destinationViewController as? UINavigationController { if let exercisesController = nav.topViewController as? ExercisesController { let cell = sender as! WorkoutCell if let workout = cell.name!.text { exercisesController.exercises = Workouts[workout]! exercisesController.navigationItem.title = workout } } } } }
Before automatically filling in the button to return to the parent segment. Now all i get is the title in vc child navigation
source share