通过路径添加图片

path = [[NSBundle mainBundle] pathForResource:@"shujia" ofType:@"jpg"];
back = [UIImage imageWithContentsOfFile:path];

你可能感兴趣的:(ios,Path,oc,uiimage)