例子:
var image = UIImage.FromFile("/path/to/image.png");
var imageView = new UIImageView();
imageView.Image = image;
image.Dispose();
来自 UIImageView 的本机引用会使底层本机图像保持活动状态,还是由于本机图像实际上已经死了而迟早会崩溃?
更新:
void Foo()
{
var image = UIImage.FromFile("/path/to/image.png");
this.imageView = new UIImageView();
this.imageView.Image = image;
}
这会泄露底层的原生镜像吗?