Post

Replies

Boosts

Views

Activity

Reply to When the interface of wkwebview exists in xcode26beta5 and one wants to take a screenshot of the wkwebview interface, the image rendered by UIGraphicsImageRenderer is blank, but this is normal in xcode26beta4
将 [view.layer renderInContext:ctx];self.contentView.drawHierarchy(in: CGRect(origin: .zero, size: imageSize), afterScreenUpdates: true) 即可正常截图
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to When the interface of wkwebview exists in xcode26beta5 and one wants to take a screenshot of the wkwebview interface, the image rendered by UIGraphicsImageRenderer is blank, but this is normal in xcode26beta4
将 [view.layer renderInContext:ctx];更换为self.contentView.drawHierarchy(in: CGRect(origin: .zero, size: imageSize), afterScreenUpdates: true) 即可正常截图
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’25