1、使用Assets.xcassets
设置如下:
2、代码设置如下:
UIImage *iconImage = [UIImage imageNamed:@"瞅瞅"];
UIImage *originalImage = [iconImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
Assets.xcassets
设置如下: UIImage *iconImage = [UIImage imageNamed:@"瞅瞅"];
UIImage *originalImage = [iconImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];