iphone - button outside MPMoviePlayerController window not responding
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-03-14T03:57:56Z
Indexed on
2010/03/14
4:05 UTC
Read the original article
Hit count: 548
I have created a MPMoviePlayerController to play a movie.
As the movie likes to play landscape in full screen, when the movie is about to play, I grab its window and resize it to be smaller.
At the same time, I add a view to the movie's window and this view contains several buttons, that are supposed to be around the movie.
As the movie's window is reduced in size, I have to scale the buttons' view up, so the buttons do not reduce in size.
I ended with this
What you can see here is this: four buttons (green rectangles), the reduced movie's window and the application's window, that now is visible because the movie's window was reduced.
The problem is that the buttons just work if you click on their regions inside the movie's window (A). If you click them on the region outside (B) they don't work. WHen you click on B, TouchesMoved on the main view controller receives the touch and the button doesn't do its action.
How can this be solved?
thanks for any help
© Stack Overflow or respective owner