1.0.19 feat:个性化房间背景-free 部分 / 首页支持 API 更新 UI
This commit is contained in:
@@ -111,7 +111,7 @@ UIKIT_EXTERN NSString *kRequestTicket;
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.view.backgroundColor = [DJDKMIMOMColor colorWithHexString:@"#FCF4DF"];
|
||||
self.view.backgroundColor = [[ClientConfig shareConfig] bgColor];
|
||||
[self setupTopTheme];
|
||||
[self initSubViews];
|
||||
[self initSubViewConstraints];
|
||||
@@ -119,10 +119,19 @@ UIKIT_EXTERN NSString *kRequestTicket;
|
||||
}
|
||||
|
||||
- (void)setupTopTheme {
|
||||
UIImageView *theme = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kGetScaleWidth(140))];
|
||||
theme.image = [UIImage imageNamed:@"home_top_bg"];
|
||||
__block UIImageView *theme = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kGetScaleWidth(140))];
|
||||
theme.image = [[ClientConfig shareConfig] navigationAreaBG];// [UIImage imageNamed:@"home_top_bg"];
|
||||
theme.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.view addSubview:theme];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserverForName:[ClientConfig shareConfig].reloadNavigationAreaImageKey
|
||||
object:nil
|
||||
queue:[NSOperationQueue mainQueue]
|
||||
usingBlock:^(NSNotification * _Nonnull notification) {
|
||||
if ([notification.object isKindOfClass:[UIImage class]]) {
|
||||
theme.image = (UIImage *)notification.object;
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated {
|
||||
|
Reference in New Issue
Block a user