开发者

Remove UIView from ViewController

开发者 https://www.devze.com 2023-03-30 08:26 出处:网络
I have One view controller and in this view controlle开发者_如何学Gor I have another sub view. How can I remove this sub view. Thanksif([subview superView])

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消