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
subviews using a depth-first search, starting with the receiver itself.
- iPhoneAppProgrammingGuide
for loop 를 돌릴 필요가 없구나.
대충 이런 코드?
// ViewController 에서.
UView *v = [self.view viewWithTag:tag];
UView *v = [self.view viewWithTag:tag];
댓글 없음:
댓글 쓰기