ios - 纹理ASButtonNode,如何设置文本右侧的图像
<p><p> <img src="/image/q3atb.png" alt="enter image description here"/> </p>
<p>这样,标题和图片的距离可以自定义</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>你可以使用<code>ASOverlayLayoutSpec</code>。</p>
<p>像这样。</p>
<pre><code>------------ASOverlayLayoutSpec------------
|-ASInsetLayoutSpecASInsetLayoutSpec|
||ASButtonNode||ASImageNode||
|-----------------------------------|
-------------------------------------------
</code></pre>
<p>引用</p>
<p> <a href="http://texturegroup.org/docs/layout2-layoutspec-types.html#asoverlaylayoutspec" rel="noreferrer noopener nofollow">http://texturegroup.org/docs/layout2-layoutspec-types.html#asoverlaylayoutspec</a>
<a href="http://texturegroup.org/docs/automatic-layout-examples-2.html" rel="noreferrer noopener nofollow">http://texturegroup.org/docs/automatic-layout-examples-2.html</a> </p></p>
<p style="font-size: 20px;">关于ios - 纹理ASButtonNode,如何设置文本右侧的图像,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/44923789/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/44923789/
</a>
</p>
页:
[1]