1. Objective-C 中
UIImage *image = [[UIImage imageNamed:@"imagePath"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
2. swift 3.0 中
let image = UIImage(named:"imagePath")?.withRenderingMode(.alwaysOriginal)
原文链接:https://www.f2er.com/swift/322239.html