1
我的應用可以在縱向方向正常工作,但當我轉向橫向模式時,我會看到白色方形槽半視圖。風景取向,半視圖。 Swift
什麼問題?電影播放器的
代碼
moviePlayer = MPMoviePlayerController(contentURL: stream)
moviePlayer.view.frame = CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: self.view.frame.size.height)
moviePlayer.view.sizeToFit()
self.view.addSubview(moviePlayer.view)
moviePlayer.fullscreen = true
moviePlayer.controlStyle = MPMovieControlStyle.Embedded
}
顯示電影播放器的視圖控制器應通過'shouldAutorotate'和'supportedInterfaceOrientations'報告它支持的旋轉 – 2014-12-04 23:21:56