search

Home  >  Q&A  >  body text

ios - After taking a screenshot, only the date picker appears with a gray-black shadow

Take a screenshot of the entire window
But the picture after the screenshot is different from the actual picture

The above is the screenshot code

The above is the screenshot effect

Why is there a black shadow?

三叔三叔2788 days ago1293

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-06-22 11:55:12

    Rewrite view.layer.render to view.drawHierarchy
    My understanding is that render superimposes all view levels to obtain a combination of all view levels, resulting in black shadows
    And drawHierarchy is explained in the document as Get the current context
    My understanding is to only get the top-level view, that is, the view of the final effect visible to the user after rendering, so there will be no black shadow

    reply
    0
  • Cancelreply