아이폰어플개발정보2010. 10. 23. 23:47
[아이폰 앱 개발] subview들 루프돌며 찾기.. subview들에 tag 속성을 준경우

Detecting Subviews

You can loop through subviews of an existing view. This works especially well if you use the "tag" property on your views.
for (UIImageView *anImage in [self.view subviews]) { if (anImage.tag == 1) { // do something } }
Posted by 오늘마감

댓글을 달아 주세요