         prepareTeam()
     }
     
+    private func prepareUserInterface() {
+        self.title = isAdd ? "新しいチームの作成" : "チーム設定"
+        if !isAdd {
+            navigationItem.rightBarButtonItem = nil
+        }
+    }
+    
     private func prepareBackgroundView() {
         let image = team.loadTeamImage().teamImage?.retina
         BackgroundView.notifyChangeImage(image)

    
    private func prepareTeam() {
        Realm.Team.clearValidateResults(team)
    }
}


class TeamEditViewController: UIViewController {
    
    // MARK: ファクトリメソッド
    class func create(for team: Team?) -> UIViewController {
        return R.storyboard.teamEditViewController.instantiate(self) { vc in
            if let team = team {
                vc.team = team
            } else {
                let newTeam = Realm.Team.create()
                vc.team = newTeam
                vc.isAdd = true
            }
        }
    }
    
