如何撤消内置图标

时间:2016-09-22 05:32:08

标签: ios swift

我将此图标指向右侧,如何更改它以指向左侧

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

1 个答案:

答案 0 :(得分:0)

仅将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