我有这个例子,我想让my_Picture成为一个实例变量,以便使用removeFromView.有任何想法吗?尝试不同的方法时,我得到了各种各样的警告和错误.先感谢您
- (void) viewDidLoad
{
UIImageView *my_Picture = [[UIImageView alloc] initWithImage: myImageRef];
[self.view addSubview:my_Picture];
[my_Picture release];
[super viewDidLoad];
}
Run Code Online (Sandbox Code Playgroud) objective-c ×1