-[UIImage _isCached]: message sent to deallocated instance 0xde8ce90

当你测试内存警告的时候,可能会遇到这种提示,这说明,你的代码里加载图片的用的是:

UIImage *image = [UIImage imageNamed:@"btn1.png"];


你应该是这样用:

    NSString* imagePath = [[NSBundle mainBundle] pathForResource:@"shujia" ofType:@"png"];
    UIImage* back = [UIImage imageWithContentsOfFile:imagePath];




也可看看这位大神是怎么弄的:http://blog.csdn.net/jxncwzb/article/details/6662826

你可能感兴趣的:(objective-c基础,iPad,iPhone开发,image,测试)