ACdream 1017 Fast Transportation (网络流+分层图)
706
2022-08-22
iOS开源:WJClipsButton-Clips 按钮的完整实现(ios开源阅读)
效果
要求
Swift 3.0
iOS 8.0
Xcode 8.0
安装
WJClipsButton is available through CocoaPods . To install it, simply add the following line to your Podfile:
pod "WJClipsButton"
使用
Code
Import
import WJClipsButton
Init && Setup
let wjButton = WJClipsButton.init(frame: CGRect.init(x: 0, y: 0, width: 300, height: 50))
wjButton.center = self.view.center
wjButton.cornerRadius = 10
wjButton.setButtonColor(.blue, status: .normal)
wjButton.setButtonColor(.yellow, status: .highlighted)
wjButton.setButtonColor(.red, status: .selected)
wjButton.setButtonTitle("I gonna start ... en ?", for: .normal)
wjButton.setButtonTitle("Touching ... friction.", for: .highlighted)
wjButton.setButtonTitle("Locked, locked.", for: .selected)
self.view.addSubview(wjButton)
Storyboard
Picture is truth
@IBInspectable Supported
Delegate
// button tap action
func didTapClipsButton()
// button unlock action
func clipsButtonDidUnlock()
// button lock action
func clipsButtonDidLock()
jingzhilehuakai, wj_jingzhilehuakai@163.com
许可
WJClipsButton is available under the MIT license. See the LICENSE file for more info.
项目主页:http://open-open.com/lib/view/home/1498720580554
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~