当前位置:网站首页>Default color setting in uiswitch off state
Default color setting in uiswitch off state
2022-07-24 13:52:00 【Muzi string music】
_rightSwitch = [[UISwitch alloc]initWithFrame:lxy(KScreenW-Width(66),7, Width(60), 26)];
_rightSwitch.onTintColor = UIBGColor; //On Color in state
_rightSwitch.transform = CGAffineTransformMakeScale(0.75, 0.75);
[_rightSwitch addTarget:self action:@selector(switchAction:) forControlEvents:UIControlEventValueChanged]; // Switch event switching notification
[_rightSwitch setThumbTintColor:[UIColor whiteColor]]; // Switch status button color
_rightSwitch.layer.cornerRadius = 16.0; // This needs to be set Otherwise, the background cannot be covered
[_rightSwitch setBackgroundColor:HexCOLOR(0xBBBBBB)]; // The background color This color is displayed when closing
边栏推荐
- The latest and complete Flink series tutorials in 2021_ Preliminary exploration of Flink principle and flow batch integration API (II. V) V2
- JS execution mechanism
- 网络安全——文件上传渗透测试
- Detailed analysis of common command modules of ansible service
- 网络安全——Web信息收集
- Flex layout
- 【无标题】rhcsa第一次作业
- 三层交换机配置MSTP协议详解【华为eNSP实验】
- Sringboot plugin framework implements pluggable plug-in services
- SQL Server 启停作业脚本
猜你喜欢
随机推荐
R语言检验样本比例:使用prop.test函数执行单样本比例检验计算总体中成功样本比例p值的置信区间
网络安全——Cookie注入
Network security - file upload whitelist bypass
Is it safe for Huatai Securities to open an account through channels? Is it formal
网络安全——文件上传黑名单绕过
Ansible installation and deployment of automated operation and maintenance
R语言epiDisplay包的kap函数计算Kappa统计量的值(总一致性、期望一致性)、对多个评分对象的结果进行一致性分析、评分的类别为多个类别、如果评分中包含缺失值则标准误及其相关统计量则无法计算
SQL Server 启停作业脚本
Network security - filtering bypass injection
使用Activiti创建数据库表报错,
CSDN垃圾的没有底线!
How to generate expected data? Emory University and others' latest "deep learning controllable data generation" review, 52 page PDF, covering 346 documents, comprehensively expounds the controllable g
FlinkTable&SQL(七)
NOIP2021 T2 数列
Lazy loading of pictures
R language uses the sum function of epidisplay package to calculate the descriptive statistical summary information of the specified variables in dataframe under different grouping variables, visualiz
OWASP ZAP安全测试工具使用教程(高级)
rhce第一次作业
Unity pedestrians walk randomly without collision
Data modification and insertion









