ios 遍历一个View中的元素

for (id obj in self.view.subviews) {
  if ([obj isKindOfClass:[UIButton Class]])
    {
      UIButton* theButton = (UIButton*)obj;theButton.xxx = ooo;
  }
}
posted @ 2015-04-16 14:07  小小小小羔羊  阅读(376)  评论(0编辑  收藏  举报