WKWebView displays content wrong after orientation change

后端 未结 4 1888
温柔的废话
温柔的废话 2020-12-30 09:43

I am fairly new to iOS development and I\'m using a WKWebView to display a page that plays a video using the Vimeo Player. When the app starts up, it shows the

4条回答
  •  离开以前
    2020-12-30 10:11

    Can you try this

    wkWebView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    

提交回复
热议问题