I have One view controller and in this view controlle开发者_如何学Gor I have another sub view. How can I remove this sub view. Thanks
if([subview superView])
{
[subview removeFromSuperview];
}
Suppose your subview name is tempView then use this
[tempView removeFromSuperview];
精彩评论