Commit e905b3c0b61c454bf18efdee513746de1c82a800
1 parent
5552b120
取消pageControl改变颜色
Showing
1 changed file
with
1 additions
and
1 deletions
CNLiveScioLive/Pages/Tools/ImageGray/UIImageView+CNGrayImage.m
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | 25 | ||
| 26 | /// 图片使用灰白处理 | 26 | /// 图片使用灰白处理 |
| 27 | BOOL gray = [[NSUserDefaults standardUserDefaults] boolForKey:ISGRAYMODE]; | 27 | BOOL gray = [[NSUserDefaults standardUserDefaults] boolForKey:ISGRAYMODE]; |
| 28 | - if (gray) { | 28 | + if (gray&&[self isMemberOfClass:[UIImageView class]]) { |
| 29 | image = [UIImage grayImage:image]; | 29 | image = [UIImage grayImage:image]; |
| 30 | } | 30 | } |
| 31 | [self xmtSwizzledSetImage:image]; | 31 | [self xmtSwizzledSetImage:image]; |