私は自分のプロジェクトを Swift 2 に移植したばかりで、すべてがうまく機能しています。ただし、最も単純なセグエにも戻るボタンがないことを除きます。私が使用しているセグエ機能の準備は次のとおりです。
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
}
}
}
}
}
以前は、親セグエへの戻るボタンが自動的に入力されていました。今、私が得るのは子ナビゲーションVCのタイトルだけです