OGeek|极客世界-中国程序员成长平台

标题: ios - 如何反转内置图标 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:37
标题: ios - 如何反转内置图标

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

VC.labelSelected = self.details[(indexPath as NSIndexPath).row] + "✏️"



Best Answer-推荐答案


仅将 self.details[(indexPath as NSIndexPath).row] 带到下一个屏幕。

将图标分配给 labelIcon,翻转它,隐藏它,然后将其文本分配给 labelSelected

labelIcon.text = "✏️"
labelIcon.transform = CGAffineTransformMakeScale(-1, 1);
labelIcon.hidden = true

labelSelected.text = self.details[(indexPath as NSIndexPath).row] + labelIcon.text

关于ios - 如何反转内置图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39630963/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4