Developer/iOS

[iOS]하위 뷰 조회하기.

블로blow 2013. 5. 7. 10:06
728x90

//호출

CFShow(allSubviews(self.view));


NSArray *allSubviews(UIView *aView)

{

NSArray *results = [aView subviews];

for (UIView *eachView in [aView subviews])

{

NSArray *riz = allSubviews(eachView);

if (riz) results = [results arrayByAddingObjectsFromArray:riz];

}

    

return results;

}




728x90