2013-04-03 47 views

回答

0

我採取這種方式,似乎工作...在layoutSubview我遍歷的superviews子視圖

for (UIView*superSub in self.superview.subviews) { 
    if ([superSub isMemberOfClass:[UIImageView class]]) { 
     superSub.backgroundColor = [UIColor colorWithRed:30/255. green:21/255. blue:4/255. alpha:1]; 
     superSub.alpha = 0.77; 
    } 
}