ios - 捕获 UIView 的图像(renderInContext 无法正常工作)
<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 mr8">
<svg aria-hidden="true"class="svg-icon iconLightbulb"width="18"height="18"viewBox="0 0 18 18"><path d="M15 6.38A6.48 6.48 0 0 0 7.78.04h-.02A6.49 6.49 0 0 0 2.05 5.6a6.31 6.31 0 0 0 2.39 5.75c.49.39.76.93.76 1.5v.24c0 1.07.89 1.9 1.92 1.9h2.75c1.04 0 1.9 1.92-1.9v-.2c0-.6.26-1.15.7-1.48A6.32 6.32 0 0 0 15 6.37ZM4.03 5.85A4.49 4.49 0 0 1 8 2.02a4.48 4.48 0 0 1 5 4.36 4.3 4.3 0 0 1-1.72 3.44c-.98.74-1.5 1.9-1.5 3.08v.1H7.2v-.14c0-1.23-.6-2.34-1.53-3.07a4.32 4.32 0 0 1-1.64-3.94ZM10 18a1 1 0 0 0 0-2H7a1 1 0 1 0 0 2h3Z"></path></svg>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>如果您先调整图形上下文,听起来 <code>renderInContext</code> 可能会起作用。如果您还没有这样做,试试这个:<a href="https://stackoverflow.com/a/3869804" rel="noreferrer noopener nofollow">https://stackoverflow.com/a/3869804</a> </p></p>
<p style="font-size: 20px;">关于ios - 捕获 UIView 的图像(renderInContext 无法正常工作),我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/8860490/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/8860490/
</a>
</p>
页:
[1]