MPMoviePlayerController breaks/stops after going to fullscreen in iOS6

后端 未结 11 1045
南方客
南方客 2020-12-24 07:10

I have a MPMoviewPlayerViewController embedded into an UIView object. When I start the player in the embedded mode everything works fine and as exp

11条回答
  •  悲&欢浪女
    2020-12-24 07:29

    I solved it by myself. As I add the Movie Player as a subview to a container view I don't need to use the actual view controller created with the MPMoviePlayerViewController which is intended to be used to present it modally or in some other vc hierarchy.

    For the single purpose of having a Movie Player view that can be added to some other view as a subview the MPMoviePlayerController's view property is sufficient.

    Until iOS 6 both worked but iOS 6 seems to differ in terms of ressource management/lifetime.

    The example project is updated with working code.

提交回复
热议问题