TTPhotoViewController のサブクラスを作成しました。iPhone を回転すると、現在の画像も回転しますが、ナビゲーション バーとツールバー (前と次のボタンのあるバー) は回転しません。私のサブクラスでは、shouldAutorotateToInterfaceOrientation:
メソッドをオーバーライドしました:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
willRotateToInterfaceOrientation:duration: e をオーバーライドしようとしましたが、内部にブレークポイントを設定しましたが、このメソッドは呼び出されないようです。