使用 ibdesignable 和 ibinspectable 的 ghost 按钮
安装:cocoapod : pod 'JMSGhostButton'
警告:要在 podfile 中启用实时渲染,必须使用 "use_frameworks!" 标志
使用方法:1 将视图拖到 interfacebuilder 并将其类设置为 JMSGhostbutton,2 在 interface builder 中覆盖图像、borderColor 和 fillColor,3 将触摸动作 touchupinside 拖到您选择的函数上