开发者

How to remove a subView

I added a subview using

myViewController *myVC = [[myViewController alloc] initWithNibName:@"myView" bundle:nil];
[self addSubview:myVC.view];
[myVC release];

how can I remove it again from a myViewController me开发者_如何转开发thod ?

I tried

[self.view removeFromSuperview];

but that doesn't work


Try this:

[myVC.view removeFromSuperview]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜