增加换肤功能
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
if (![imageUrl isExist]) {
|
||||
return;
|
||||
}
|
||||
if ([imageUrl hasPrefix:@"http"]) {
|
||||
if ([imageUrl hasPrefix:@"http"] || [imageUrl hasPrefix:@"https"]) {
|
||||
[self.bgImageView sd_setImageWithURL:[NSURL URLWithString:imageUrl] placeholderImage:nil];
|
||||
}else{
|
||||
self.bgImageView.image = [UIImage imageNamed:imageUrl];
|
||||
@@ -64,6 +64,7 @@
|
||||
if (!_bgImageView) {
|
||||
_bgImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
|
||||
_bgImageView.contentMode = UIViewContentModeScaleAspectFill;
|
||||
_bgImageView.clipsToBounds = YES;
|
||||
}
|
||||
return _bgImageView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user