2.2 Creating and Using Switches with UISwitch

来源:互联网 发布:淘宝店铺活动方图800 编辑:程序博客网 时间:2024/05/17 02:53
2.2 Creating and Using Switches with UISwitch
就是开关啦,
如果想相应操作用
[self.mySwitch addTarget:self
action:@selector(switchIsChanged:)
forControlEvents:UIControlEventValueChanged];
self里面实现(switchIsChanged:)