ios - UITouch blocked after using MPMoviePlayerController's view -


I have a UIButton on the top left of the screen, using IOS simulator I can touch the top part of the top part of the button. It works as expected:

Enter image details here

But after using MPMoviePlayerController , the button does not work when pressed in that area! (Can be a bit big / small) looks crazy!

MPMoviePlayerController

  if (! _player) {[[UIApplication shared application] Remote control events starting at]; NSError * setCategoryErr = Zero; NSError * activationErr = zero; [[Avidio Session Shared Instance] Set Category: Evaluation Character Playback Error: & amp; Set category ARR]; [[Avidio Session Shared Instance] Set Active: Yes Error: & amp; Activation ARR;]; VCRoot * Root = [[ApplicationManager Shared Manager] RootviewController]; _player = [[MP3 MPV Player controller] Init]; _player.movieSourceType = MPMovieSourceTypeStreaming; _player.view.hidden = Yes; [Root.view addSubview: _player.view]; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (Movie PlayerTest Change) Name: MPMPplayLoreloadedTrade Change Notification Object: Zero]; } And {[_player stop]; } _player.contentURL = [channel url]; [_player setInitialPlaybackTime: -1.0]; [_player play];   

Note:

I tried to add the _player.view to the use of the using the webview: AtIndex: 0 , tried setIsUserInteractionEnabled = NO , tried setAlpha = 0.f , none of which was used. I used it in a different view of a subview Was also added in the form.

Anyway:

When I stop the player, and delete the scene, then that area is touchable: ( < P>

I have tried all of the things ... in the end:

_player.view.frame = CGRectMake (-100, -100, 1.F., 1.F);

Done!

Comments