【发布时间】:2010-12-11 20:23:11
【问题描述】:
当设备的方向更新时,我正在尝试更新分配的 UIButton 的每一帧。现在我有一个 for 循环,它应该检查视图中的每个 UIButton 并更新 UIButton 的框架。 for 循环不起作用,谁能告诉我为什么?
提前致谢!
for(UIView* view in theTable.subviews) {
if([view isMemberOfClass:[UIButton class]]) {
NSLog(@"UIButton found");
view.frame = CGRectMake(430, 10, 23, 24);
}
}
【问题讨论】:
标签: uitableview ios ios4 uibutton