- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;// Faster one-part variant, called from within a rotating animation block, for additional animations during rotation.// A subclass may override this method, or the two-part variants below, but not both.- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration NS_AVAILABLE_IOS(3_0);这些方法都是屏幕旋转的时候触发的,你可以在这里去调整mediaPlayerController的frame。
取消
评论