iphone ipadで回転対応をする
//ノーティフィケーション登録。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
//通知開始
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];