- UISwitch常用屬性使用如下(未完,待補(bǔ)充......)
// 設(shè)置switch開(kāi)關(guān)默認(rèn)為開(kāi)
[notificationSwitch setOn:YES];
// 設(shè)置switch開(kāi)關(guān)打開(kāi)時(shí)顯示的顏色
notificationSwitch.onTintColor = [UIColor colorWithHexString:@"#1A9FF7"];
// 設(shè)置關(guān)閉狀態(tài)是,邊邊線條的顏色,也是關(guān)閉時(shí)過(guò)渡動(dòng)畫(huà)的顏色
notificationSwitch.tintColor = [UIColor colorWithHexString:@"#1A9FF7"];