How do I take a snapshot / screenshot of the UIWebView
control?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
use this code to take a screenshot and save it to the library
you can change the screenshot taking portion by changing the
to your respective value try it it will help you
The accepted answer is correct, however the screenshot is not in retina resolution. Using
UIGraphicsBeginImageContextWithOptions
and set its scale parameter 0.0f makes it capture in native resolution.Use This: