增加换肤功能

This commit is contained in:
启星
2025-08-14 09:40:25 +08:00
parent 8065693d4c
commit 9a6659045d
24 changed files with 446 additions and 79 deletions

View File

@@ -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;
}