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?
天蓬老师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