目录
目录README.md

ActionButton

custom class from UIButton which open a UIAlertController with sheetStyle act like combo box.

Intallation Options

  • Swift Package Manager

⚠️ Attention

do not use for large number of options.

Example


class viewController: UIViewController{
    @IBOutlet weak var fooButton: ActionButton!
    
    override func viewDidLoad(){
        super.viewDidLoad()
        
        fooButton.dataSource = [
            "option 1",
            "option 2"
        ]
    }
}

extension viewController: ActionButtonDelegate{
    func actionButton(_ actionButton: ActionButton, didSelectRow index: Int){
        print(index, actionButton.dataSource[index])
    }
}
关于
34.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号