【发布时间】:2016-02-24 14:49:45
【问题描述】:
我的应用中有一些按钮声明如下:
let infoButton = UIButton(type: UIButtonType.InfoLight) as UIButton
infoButton.addTarget(self, action: "toggleInfo", forControlEvents: UIControlEvents.TouchUpInside)
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customView: infoButton)
在将图像分配给我的 NavigationBar 之前,有没有办法从系统定义的按钮本身(例如垂直)镜像图像?
【问题讨论】:
-
我不这么认为。我想翻转一个内置的图形 - 这里是一个系统类型按钮。
-
您可能想尝试下载模板 PSD 并为自己导出所需的按钮。例如来自:dribbble.com/shots/…