NSBundle* bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle].resourcePath stringByAppendingPathComponent:@"bundleName"]];

    UIImage* img = [UIImage imageWithContentsOfFile:[bundle pathForResource:imageName ofType:@"png" inDirectory:[NSString stringWithFormat:@"文件名称%@",externPath]]];

相关文章: