Commit c4cb46f2 by pidan

修改首页推荐关注的UI

parent a8d27260
...@@ -129,24 +129,24 @@ ...@@ -129,24 +129,24 @@
// 搭建标题 View // 搭建标题 View
- (void)initTitleView - (void)initTitleView
{ {
_titleView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.width, 168 + UIView.fus_SafeTop)]; _titleView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.width, 148 + UIView.fus_SafeTop)];
[self addSubview:_titleView]; [self addSubview:_titleView];
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 30 + UIView.fus_SafeTop, 183, 43)]; UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 10 + UIView.fus_SafeTop, 84, 43)];
imageView.centerX = _titleView.width / 2.0; imageView.centerX = _titleView.width / 2.0;
imageView.contentMode = UIViewContentModeScaleAspectFit; imageView.contentMode = UIViewContentModeScaleAspectFit;
imageView.image = [UIImage com_ImageNamed:@"common_push_notice_img"]; imageView.image = [UIImage fus_ImageNamed:@"fus_common_navi_title_logo"];
[_titleView addSubview:imageView]; [_titleView addSubview:imageView];
UILabel *titleLabel = [[UILabel alloc] init]; UILabel *titleLabel = [[UILabel alloc] init];
titleLabel.font = [UIFont fus_themeMediumFont:13]; titleLabel.font = [UIFont fus_themeMediumFont:13];
titleLabel.numberOfLines = 0; titleLabel.numberOfLines = 0;
titleLabel.textColor = [UIColor colorWithWhite:1 alpha:0.8]; titleLabel.textColor = [UIColor fus_textColorRich];
titleLabel.text = [NSString stringWithFormat:[NSString fus_localString:@"%@的尊贵新玩家,欢迎远道而来。\n主播们在等你,希望你关注她们。"],FUSConfig.sharedInstanced.appConfigs.appName]; titleLabel.text = [NSString stringWithFormat:[NSString fus_localString:@"%@的尊贵新玩家,欢迎远道而来。\n主播们在等你,希望你关注她们。"],FUSConfig.sharedInstanced.appConfigs.appName];
titleLabel.textAlignment = NSTextAlignmentCenter; titleLabel.textAlignment = NSTextAlignmentCenter;
CGSize size = [titleLabel.text sizeWithFont:titleLabel.font maxWidth:UIView.fus_screenW - 120 maxHeight:MAXFLOAT]; CGSize size = [titleLabel.text sizeWithFont:titleLabel.font maxWidth:UIView.fus_screenW - 120 maxHeight:MAXFLOAT];
titleLabel.size = size; titleLabel.size = size;
titleLabel.y = imageView.bottom + 26; titleLabel.y = imageView.bottom + 16;
titleLabel.centerX = imageView.centerX; titleLabel.centerX = imageView.centerX;
[_titleView addSubview:titleLabel]; [_titleView addSubview:titleLabel];
} }
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
_followBtn = [FUSStyleButton buttonWithType:UIButtonTypeCustom]; _followBtn = [FUSStyleButton buttonWithType:UIButtonTypeCustom];
// _followBtn.style = FUSButtonStyleGradient; // _followBtn.style = FUSButtonStyleGradient;
_followBtn.backgroundColor = [UIColor colorWithHex:@"#02F2F2"]; _followBtn.backgroundColor = [UIColor colorWithHex:@"#02F2F2"];
_followBtn.frame = CGRectMake(0, _collectionView.height + 18, 281, 40); _followBtn.frame = CGRectMake(0, _collectionView.bottom + 18, 281, 40);
_followBtn.centerX = self.width / 2.0; _followBtn.centerX = self.width / 2.0;
// _followBtn.layer.cornerRadius = _followBtn.height / 2.0; // _followBtn.layer.cornerRadius = _followBtn.height / 2.0;
// _followBtn.layer.masksToBounds = YES; // _followBtn.layer.masksToBounds = YES;
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
- (void)layoutSubviews{ - (void)layoutSubviews{
[super layoutSubviews]; [super layoutSubviews];
_followBtn.y = _collectionView.height + 18; _followBtn.y = _collectionView.bottom + 18;
[self bringSubviewToFront:_followBtn]; [self bringSubviewToFront:_followBtn];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment