设置UIButton以共享快速操作图标

时间:2017-05-01 15:14:06

标签: ios swift image button share

我想将下面链接中的快速操作共享图标设置为UIButton。那可能吗?这是我使用自定义按钮的代码

let addButton = UIButton()
addButton.setImage(UIImage(named: "Share.png"), for: .normal) 

https://developer.apple.com/ios/human-interface-guidelines/graphics/system-icons/

1 个答案:

答案 0 :(得分:1)

我们无法加载这样的系统图标。但是,我们可以使用几种类型的按钮类型来初始化以获取一些系统图标:

  • contactAdd
  • detailDisclosure
  • infoDark
  • infoLight

不幸的是,您需要设计所需的共享图标。