您的位置:首页 > 其它

获取bundle文件下的资源

2016-05-07 15:38 309 查看
NSBundle* bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle].resourcePath stringByAppendingPathComponent:@"bundleName"]];

UIImage* img = [UIImage imageWithContentsOfFile:[bundle pathForResource:imageName ofType:@"png" inDirectory:[NSString stringWithFormat:@"文件名称%@",externPath]]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: