ios - 如何反转内置图标
<p><p>我有这个图标指向右边,我如何改变它以指向左边</p>
<pre><code>VC.labelSelected = self.details[(indexPath as NSIndexPath).row] + "✏️"
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>仅将 <code>self.details[(indexPath as NSIndexPath).row]</code> 带到下一个屏幕。</p>
<p>将图标分配给 <code>labelIcon</code>,翻转它,隐藏它,然后将其文本分配给 <code>labelSelected</code>。</p>
<pre><code>labelIcon.text = "✏️"
labelIcon.transform = CGAffineTransformMakeScale(-1, 1);
labelIcon.hidden = true
labelSelected.text = self.details[(indexPath as NSIndexPath).row] + labelIcon.text
</code></pre></p>
<p style="font-size: 20px;">关于ios - 如何反转内置图标,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/39630963/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/39630963/
</a>
</p>
页:
[1]