UIImage Cache图像吗? [英] Does the UIImage Cache image?

查看:85
本文介绍了UIImage Cache图像吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UIImage *img = [[UIImage alloc] initWithContentsOfFile:@"xx.jpg"]
UIImage *img = [UIImage imageNamed:@"xx.jpg"]

在第二种类型中图像会被缓存吗?

而在第一种类型中键入图像不会被缓存?

In the second type will the image get cached ?
Whereas the in the first type the images doesn't get cached?

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆