runtime 获取子控件
2020-01-08 本文已影响0人
魏志军
unsigned int count ;
Ivar *ivars = class_copyIvarList([UITextField class], &count);
for(inti =0; i < count; i++) {
Ivaronrivar = ivars[i];
BusLog("%@",onrivar);
}
free(ivars);
unsigned int count ;
Ivar *ivars = class_copyIvarList([UITextField class], &count);
for(inti =0; i < count; i++) {
Ivaronrivar = ivars[i];
BusLog("%@",onrivar);
}
free(ivars);