網頁

2012年7月18日 星期三

remove Subviews

 


@interface TestViewController : UIViewController
{
       
IBOutlet UIView *viewQA;

}
@property (nonatomic, strong) IBOutlet UIView *viewQA;
 
@synthesize viewQA;
- (void) removeSubviewsQA
{
 
    for (id object in viewQA.subviews) {
        [object removeFromSuperview];
    }
    
    [viewQA removeFromSuperview];
}

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。