//兩種取圖片路徑方法區別 NSString *path = [[NSBundle mainBundle]pathForResource:@"1" ofType:@"JPG"]; UIImage *image = [UIImage imageNamed:@"1.JPG"]; // UIImage *image = [UIImage imageWithContentsOfFile:path];