ios - remove subview of uiwindow? -
i want remove view uiwindow,so nslog in appdelegate method,it says window's subviews count 2 nslog(@" %d",[[self.window subviews] count]); how can remove subviews window,if remove subviews have tab bar controller continued...
- (void) getusercompleted { nslog(@" %@",[[self.window subviews] objectatindex:0]); nslog(@" %@",[[self.window subviews] objectatindex:1]); }
you can remove single subview using next code.
[subview_name removefromsuperview]; if want remove subviews form view utilize this.
nsarray *subviewarray = [self.window subviews]; (id obj in subviewarray) { [obj removefromsuperview]; } ios ios5 window calayer subview
No comments:
Post a Comment