프로그래밍/Object-C2012. 3. 26. 13:21
1. 할당 추가 View 객체 특수 태그 값

 각 UIView 객체에 tag값을 이용하여 제거
1
view.tag = 7;
1
2
3
4
5
for (UIView *subview in [self.view subviews])
{
    if (subview.tag == 7)
        [subview removeFromSuperview];
}


2. 하위 Views 제거
1
2
NSArray *subviews = [myView subviews];
for (UIView *subview in subviews) [subview removeFromSuperview];

'프로그래밍 > Object-C' 카테고리의 다른 글

tabBarController의 하위뷰에 접근  (0) 2012.04.02
Status Bar in Activityindicator  (0) 2012.04.02
NSData -> INT  (0) 2012.03.25
(Object-C)HTTP/HTTPS 송수신  (0) 2012.03.25
주소록 데이터에 접근(AddressBook)  (0) 2012.03.21
Posted by 건깡