import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
//创建UISWitch(Switch无需设置大小)
let uiSwitch =
Swift - UISwitch
最新推荐文章于 2021-11-01 21:44:05 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
//创建UISWitch(Switch无需设置大小)
let uiSwitch =