jjzjj

ios - uiview autosizing displayed with 20 px shift 主要是在播放电影后

coder 2024-01-27 原文

启动 iPad 应用程序时,我可以将它打开所有可能的方向,并且它可以毫无问题地显示,一切正常,但我不知道为什么在播放电影后,然后尝试旋转我的 iPad我的 View 尺寸正在缩小并且显示错误 我从 2 天开始就一直在尝试,但没有成功 任何的想法 ?有什么建议吗?非常感谢
请您看一下下面的代码:

- (void) moviePlayBackDidFinish:(NSNotification*)notification 
{ 
    MPMoviePlayerController *player = [notification object]; 

     self.isMoviePlaying =FALSE;
    [[NSNotificationCenter defaultCenter] 
     removeObserver:self 
     name:MPMoviePlayerPlaybackDidFinishNotification 
     object:player]; 

    if ([player respondsToSelector:@selector(setFullscreen:animated:)]) 
    { 
        [player.view removeFromSuperview]; 
        NSLog(@"played movie has been removed from the super view  ");
    }
}

最佳答案

iPad 和自动旋转有几个问题,特别是关于状态栏的问题。对于我遇到的问题,将主视图 Controller 上的 wantsFullscreenLayout 属性设置为 YES 修复了它。不确定它是否能解决您的问题,但值得一试。

关于ios - uiview autosizing displayed with 20 px shift 主要是在播放电影后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10389781/

有关ios - uiview autosizing displayed with 20 px shift 主要是在播放电影后的更多相关文章

随机推荐