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