gpt4 book ai didi

iphone - -[NSConcreteMutableData _isResizable] : issue with UIImage

转载 作者:行者123 更新时间:2023-11-29 04:47:04 25 4
gpt4 key购买 nike

我收到以下错误:

 -[NSConcreteData _isResizable]: unrecognized selector sent to instance 0x9954d30

在此代码上:

UIImage *cachedImage = [self cachedImageForUrl:self.imageSource];
if (cachedImage) {
self.image = cachedImage;
}

有什么想法吗?

最佳答案

你在使用ARC吗?如果不是,当 self.image 未正确保留缓存的图像时可能会发生这种情况。当cachedImage被释放并且self尝试访问它时,该内存现在可能指向随机的其他类(例如NSConcreteData)。你是如何为 UIImage *image 定义 @property 的?

关于iphone - -[NSConcreteMutableData _isResizable] : issue with UIImage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9478371/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com