类似 文件夹 添加图片在包内,添加到工程后,使用
NSString *path = [[NSBundle mainBundle] pathForResource:@"images.bundle" ofType:nil];
path = [path stringByAppendingPathComponent:imageName];
获取文件路径。防止多文件同名问题,
类似 文件夹 添加图片在包内,添加到工程后,使用
NSString *path = [[NSBundle mainBundle] pathForResource:@"images.bundle" ofType:nil];
path = [path stringByAppendingPathComponent:imageName];
获取文件路径。防止多文件同名问题,