UIImage加载图片节省内存方法

来源:互联网 发布:众惠微交易源码 编辑:程序博客网 时间:2024/04/27 20:31

不要用[UIImage imageNamed:@"a.png"].


用 [UIImage imageWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"a.png"]];

原创粉丝点击