ios - 如何从 iOS 上的代码中截取屏幕截图?
<p><div>
<aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
<div class="d-flex fd-column fw-nowrap">
<div class="d-flex fw-nowrap">
<div class="flex--item wmn0 fl1 lh-lg">
<div class="flex--item fl1 lh-lg">
<b>关闭</b>。这个问题需要更多 <a href="https://stackoverflow.com/help/closed-questions" rel="noreferrer noopener nofollow">focused</a> .它目前不接受答案。
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p> <a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/2353-possible-make-screenshot-programmatically-2.html" rel="noreferrer noopener nofollow">http://www.iphonedevsdk.com/forum/iphone-sdk-development/2353-possible-make-screenshot-programmatically-2.html</a> </p>
<pre><code>#include <QuartzCore/QuartzCore.h>
UIGraphicsBeginImageContext(Background.bounds.size);
;
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
</code></pre></p>
<p style="font-size: 20px;">关于ios - 如何从 iOS 上的代码中截取屏幕截图?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/3945800/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/3945800/
</a>
</p>
页:
[1]