Cell中的UISwitch 无法点击 2021-04-13 本文已影响0人 Antlers777 之前是这么写的: self.addSubview(MySwitch) 现在应该这么写的: self.contentView.addSubview(MySwitch)