显示大量图片 iphone

来源:互联网 发布:ubuntu 16.04 ip配置 编辑:程序博客网 时间:2024/04/29 09:39

用图片的时候一定要小心的alloc和release
推荐使用
NSString *path = [[NSBundle mainBundle] pathForResource:@"icon" ofType:@"png"];
myImage = [UIImage imageWithContentsOfFile:path];

原创粉丝点击