海了个螺 - UIButton
type: channel
link: https://nnnuo.com/tag/UIButton/
items: Swift UIKit 组件-UIButton(按钮)

Swift UIKit 组件-UIButton(按钮)
type: item
date: 2022-11-27T04:34:00+08:00
description: 预览：import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let MyButton = UIButton(type: .system) MyButton.frame = CGRect(x: 135, y: 50, width: 160, height: 35) MyButton.setTitle("Button(按钮)", for: .normal) MyButton.configuration = .filled() view.addSubview(MyButton) // Do any additional setup after loading the view. } }