2010년 3월 31일 수요일

UIView 의 Tag

To search for a tagged view, use the viewWithTag: method of UIView. This method searches the receiver ’s
subviews using a depth-first search, starting with the receiver itself.

- iPhoneAppProgrammingGuide

for loop 를 돌릴 필요가 없구나.

대충 이런 코드?
// ViewController 에서.
UView *v = [self.view viewWithTag:tag];


댓글 없음:

댓글 쓰기