UIWebView/MPMoviePlayerController and the "Done" button
Posted
by
David Sowsy
on Stack Overflow
See other posts from Stack Overflow
or by David Sowsy
Published on 2010-01-30T04:20:24Z
Indexed on
2012/06/09
10:40 UTC
Read the original article
Hit count: 530
I am using the UIWebView to load both streaming audio and video. I have properly set up the UIWebView delegate and I am receiving webViewDidStartLoading and webViewFinishedLoading events perfectly. The webview launches a full screen window (likely a MPMoviePlayerController)
Apple's MoviePlayer example gets the array of Windows to determine which window the moviePlayerWindow is for adding custom drawing/getting at the GUI components. I believe this to be a bad practice/hack.
My expectation is that I should be able to figure out when that button was clicked by either a delegate method or an NSNotification. It may also be the case that I have to poke around subviews or controllers with isKindOf calls, but I don't think those are correct approaches.
- Are my expectations incorrect, and if so, why?
- What is the correct way to bind an action to that "Done" button?
© Stack Overflow or respective owner