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

标签 ios ipad

启动 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 CoreBluetooth CBErrorDomain=8 尝试实现 HID 规范

ios - 我如何在结束编辑后编程地转到文本字段

ios - iOS 8 中没有取消 UISlider 事件?

html - 手机Safari文件上传弹出位置

ipad - UINavigationController 后退按钮一半适用于 iPad 横向

jquery - iPad 网络应用程序 : Prevent input focus AFTER ajax call

ios - 使用 AFNetworking 2.0 上传图像

objective-c - 每个月在后台进程中更换墙纸

iphone - 我应该购买哪个 iOS 开发者程序?

iphone - 如何在iPhone的MKMapView中添加UIImage?