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]
精彩评论