菜鸟教程小白 发表于 2022-12-11 17:37:12

ios - 如何反转内置图标


                                            <p><p>我有这个图标指向右边,我如何改变它以指向左边</p>

<pre><code>VC.labelSelected = self.details[(indexPath as NSIndexPath).row] + &#34;✏️&#34;
</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 = &#34;✏️&#34;
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]
查看完整版本: ios - 如何反转内置图标