2012-04-25 6 views
0

私はUIWebViewを持っています。その中には、ビデオ用のYouTubeプレーヤーがあることもあります。ユーザーは全画面でビデオを見ることができます。しかし、問題は、ユーザーがビデオをフルスクリーンで見ると、それを回転させ、willAnimateToInterfaceOrientationを呼び出さないということです。だから私はこれを手動で呼び出すつもりです。問題は、誰かがYouTubeの動画を却下したときにどのようにチェックするのですか?youtube videoが全画面表示から却下されたときにチェックする

答えて

0

viewDidLoad

[[NSNotificationCenter defaultCenter] addObserver:self 
       selector:@selector(didRotate:) 
       name:@"UIDeviceOrientationDidChangeNotification" object:nil]; 

- (void) didRotate:(NSNotification *)notification{ 
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; 

    //Handle rotation 

} 
UIDeviceOrientationDidChangeNotificationのために自分自身を登録してください
関連する問題