//从本地获取图片
NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"instructions.jpg"];
UIImage *imagePicked = [UIImage imageWithContentsOfFile:path];
// 图片所在文件夹若为实体文件夹,路径中需要加上文件夹

//从本地获取图片
NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"instructions.jpg"];
UIImage *imagePicked = [UIImage imageWithContentsOfFile:path];
// 图片所在文件夹若为实体文件夹,路径中需要加上文件夹
本文标题:获取本地图片
本文链接:https://www.haomeiwen.com/subject/gizzittx.html
网友评论