UIWebView modal YouTube player “Done” button action

前端 未结 3 1686
悲&欢浪女
悲&欢浪女 2020-12-31 16:45

In my iPhone app, I\'m presenting a modal view controller from a home screen with a UIWebView that displays an \"inline\" embedded YouTube video using this:

         


        
3条回答
  •  再見小時候
    2020-12-31 17:18

    Not an exact solution but a kind of patch can may be help you out.

    Take a global flag (may be in ApplicationDelegate) and set it to true when ever you tap on Done button on the youtube page. And in the very first controller viewWillAppear check if the flag is TRUE then present the second controller and turn the flag FALSE again.

    Hope it helps.

提交回复
热议问题