// 快速遍历子视图
for (id object in self.ackVIew.subviews) {
// 找到图像类子类
if ([object isKindOfClass:[UILabel class]]) {
// 对 object 进行了判断,它一定是 UIImageView 或其子类
UILabel * label = (UILabel *)object;
label.text =@"12123123";
}
}
// 快速遍历子视图
for (id object in self.ackVIew.subviews) {
// 找到图像类子类
if ([object isKindOfClass:[UILabel class]]) {
// 对 object 进行了判断,它一定是 UIImageView 或其子类
UILabel * label = (UILabel *)object;
label.text =@"12123123";
}
}