我是 iPhone 开发的新手。我在我的 NIB 文件中使用了 UIView、UIImageView、UIScrollView 等。我的问题是我可以从 SuperView 中删除所有这些视图吗?例如:`
-(void)dealloc
{
[super dealloc];
[imageView removeFromSuperview];
[View1 removeFromSuperview];
[View2 removeFromSuperview];
[ScrollView removeFromSuperview];
[imageView release];
[View1 release];
[View2 release];
[ScrollView release];
imageView = nil;
View1 = nil;
View2 = nil;
ScrollView = nil;
}
请帮助我。谢谢...