Swift - 按钮(UIButton)的用法
1,按钮的创建
(1)按钮有下面四种类型:
(2)对于Custom定制类型按钮,代码可简化为:
1
(1)按钮有下面四种类型:
UIButtonType.InfoDark:为感叹号“!”圆形按钮
UIButtonType.InfoLight:为感叹号“!”圆形按钮
button =
(frame:
|