Latest 0.1.0
Homepage https://github.com/William-Weng/WWRadioButton
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

一個自訂的單選按鈕 (上傳至Cocoapods)

Swift 4.2 Version Platform License

一個自訂的單選按鈕 (上傳至Cocoapods)

使用範例

IBOutlet
IBOutlet

import UIKit
import WWRadioButton

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    @IBAction func showButton(_ sender: WWRadioButton) {

        sender.isTouched = true

        guard let selectedButton = WWRadioButton.selectedButtonList[sender.groupIdentifier],
              let nowSelectedButton = selectedButton
        else {
            return
        }

        print(nowSelectedButton.tag)
    }
}

Latest podspec

{
    "name": "WWRadioButton",
    "version": "0.1.0",
    "summary": "WWRadioButton is like a html radio button. (u4e00u500bu81eau8a02u7684u55aeu9078u6309u9215)",
    "homepage": "https://github.com/William-Weng/WWRadioButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u7fc1u79b9u658c(William.Weng)": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "ios": {
        "vendored_frameworks": "WWRadioButton.framework"
    },
    "source": {
        "git": "https://github.com/William-Weng/WWRadioButton.git",
        "tag": "0.1.0"
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This