UINavigationControllerでpushした時に自動でUINavigationBarの左側に出てくるBackボタンをハンドルしたいことはたくさんあると思います。 他のボタンと違ってこのボタンはUINavigationBarDelegateを使ってうまく扱ってあげる必要があります。 UINavigationBarDelegateの処理を毎回書くのもよいのですが、今回はUINavigationControllerを拡張してこの辺りを簡単に実装できるNavigationContollerを作ってみました。 UINavigationBarDelegate UINavigationBarDelegateには4つの関数が用意されています。 - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UIN