中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

iOS開源:WJClipsButton-Clips 按鈕的完整實(shí)現(xiàn)

2019-07-23    來源:編程學(xué)習(xí)網(wǎng)

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬(wàn)Linux鏡像隨意使用

效果

要求

  • 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, [email protected]

許可

WJClipsButton is available under the MIT license. See the LICENSE file for more info.

 

項(xiàng)目主頁(yè):http://www.open-open.com/lib/view/home/1498720580554

 

 

標(biāo)簽: [db:TAGG]

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇:php 獲取中文字符拼音首字母

下一篇:O2OA 穩(wěn)定版 V4.2235 發(fā)布,功能性能等多方面優(yōu)化升級(jí)