playing youtube video inside uiwebview. How to handle the “done” button?

后端 未结 4 684
攒了一身酷
攒了一身酷 2021-02-08 10:57

I have a uiwebview that plays a youtube video. How can I handle the done button action? Right now, when I tap the done button it changes back to my app main menu (not the menu t

4条回答
  •  -上瘾入骨i
    2021-02-08 11:28

    @Gdx Wu @lambmj

    Thanks for your methods, they work fine. But there is some small problem that after clicking the done button & jumping directly to the presenting view controller, we need to dismiss the presented modal view controller and present it again, which would bring some dither(like flash) between these view controller switches.

    Based on this, I highly recommend @IsaacCisneros 's method which would switch seamlessly.

提交回复
热议问题