for (UITableView * table in [self.view subviews]) {
if([table isMemberOfClass:[UITableView class]])
table.frame=self.view.frame;
}
快速枚举 UITableView * table in [self.view subviews] 并不作严格的类型检查,本来试想直接用UITableView 来限定table来限定类型,但不管用,所以加一个类型检查 if([table isMemberOfClass:[UITableView class]]),就可以专门对UITableview类型做操作了。