UIView *mainView =[[[[mySwitch subviews] objectAtIndex:0] subviews] objectAtIndex2];
UILabel *onLabel = [[mainView subviews] objectAtIndex:0];
UILabel *offLabel = [[mainView subviews] objectAtIndex:2];
//相关Label的操作
//……
访问UISwitch中的UILabel
最新推荐文章于 2023-10-16 15:26:47 发布