我有一个例子,想把我的图片作为实例变量,以便使用removeFromView。有什么好的想法吗?尝试不同的方法时,我得到了各种警告和错误提示。提前感谢您。
- (void) viewDidLoad
{
UIImageView *my_Picture = [[UIImageView alloc] initWithImage: myImageRef];
[self.view addSubview:my_Picture];
[my_Picture release];
[super viewDidLoad];
}