UI调整
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
[self addSubview:self.bgImageView];
|
||||
|
||||
[self.bgImageView addSubview:self.tableView];
|
||||
CGFloat tabX = 30;
|
||||
CGFloat tabX = 31;
|
||||
CGFloat tabH = self.dataSource.count *self.tableView.rowHeight;
|
||||
self.tableView.frame = CGRectMake(tabX, 20, cellWitdh, tabH);;
|
||||
[self.tableView reloadData];
|
||||
|
@@ -100,7 +100,7 @@
|
||||
CGFloat gameWidth = (KScreenWidth - 15 -partyWidth - 8 - 3 -15)/2.0;
|
||||
CGFloat gameHeight = 56.0/120.0*gameWidth;
|
||||
[self.gameView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(self.partyView.mas_right).offset(15);
|
||||
make.left.mas_equalTo(self.partyView.mas_right).offset(8);
|
||||
make.top.mas_equalTo(self.partyView);
|
||||
make.width.mas_equalTo(gameWidth);
|
||||
make.height.mas_equalTo(gameHeight);
|
||||
|
@@ -109,6 +109,7 @@
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.view.backgroundColor = UIColor.whiteColor;
|
||||
[self.view addSubview:self.collectionView];
|
||||
}
|
||||
|
||||
|
@@ -141,6 +141,7 @@
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.view.backgroundColor = UIColor.whiteColor;
|
||||
[self.view addSubview:self.pagingView];
|
||||
|
||||
}
|
||||
|
@@ -46,6 +46,7 @@
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.view.backgroundColor = UIColor.clearColor;
|
||||
[self.view addSubview:self.topGradientImageView];
|
||||
[self.view addSubview:self.titleView];
|
||||
[self.view addSubview:self.allReadButton];
|
||||
@@ -101,7 +102,7 @@
|
||||
- (UIImageView *)topGradientImageView {
|
||||
if (!_topGradientImageView) {
|
||||
_topGradientImageView = [[UIImageView alloc] init];
|
||||
_topGradientImageView.image = [UIImage gradientColorImageFromColors:@[[ThemeColor colorWithHexString:@"#DCF6FF"], [ThemeColor colorWithHexString:@"#F8F8FA"]] gradientType:GradientTypeTopToBottom imgSize:CGSizeMake(KScreenWidth, 125)];
|
||||
_topGradientImageView.image = [UIImage gradientColorImageFromColors:@[[ThemeColor colorWithHexString:@"#DCF6FF"], [ThemeColor colorWithHexString:@"#FFFFFF"]] gradientType:GradientTypeTopToBottom imgSize:CGSizeMake(KScreenWidth, 125)];
|
||||
_topGradientImageView.contentMode = UIViewContentModeScaleToFill;
|
||||
}
|
||||
return _topGradientImageView;
|
||||
|
@@ -288,7 +288,7 @@
|
||||
[self.arrowButton setImage:[UIImage imageNamed:@"gift_bar_count_arrow"] forState:UIControlStateNormal];
|
||||
self.rechargeView.backgroundColor = [ThemeColor colorWithHexString:@"#000000"];
|
||||
self.rechageImageView.image = [UIImage imageNamed:@"gift_bar_recharge_arrow"];
|
||||
self.backgroundColor = [ThemeColor colorWithHexString:@"#161722"];
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
self.balanceLabel.textColor = [ThemeColor colorWithHexString:@"#FFFFFF"];
|
||||
}
|
||||
}
|
||||
@@ -298,9 +298,11 @@
|
||||
if (_drawGiftCount >= 10) {
|
||||
self.sendGiftButton.selected = NO;
|
||||
self.sendOperationView.layer.borderWidth = 1;
|
||||
self.sendOperationView.layer.borderColor = [ThemeColor appMainColor].CGColor;
|
||||
} else {
|
||||
self.sendGiftButton.selected = YES;
|
||||
self.sendOperationView.layer.borderWidth = 0;
|
||||
self.sendOperationView.layer.borderWidth = 1;
|
||||
self.sendOperationView.layer.borderColor = [ThemeColor disableButtonColor].CGColor;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -169,6 +169,7 @@
|
||||
|
||||
#pragma mark - Public Method
|
||||
- (void)configGiftUsers:(NSArray<XPGiftUserInfoModel *> *)users {
|
||||
NSMutableArray *arr = [NSMutableArray array];
|
||||
self.userArray = [self findSendGiftAllUsers:users];
|
||||
if (users.count == 1 && users.firstObject.position == nil) {///只有一个 并且用户不再麦序中的话
|
||||
XPGiftUserInfoModel *userInfo = users.firstObject;
|
||||
@@ -296,7 +297,7 @@
|
||||
if (!_allSendImageView) {
|
||||
_allSendImageView = [[UIImageView alloc] init];
|
||||
_allSendImageView.userInteractionEnabled = YES;
|
||||
_allSendImageView.image = [UIImage imageNamed:@"room_gift_all_mic_bg"];
|
||||
// _allSendImageView.image = [UIImage imageNamed:@"room_gift_all_mic_bg"];
|
||||
}
|
||||
return _allSendImageView;
|
||||
}
|
||||
|
@@ -68,6 +68,7 @@
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
self.view.backgroundColor = UIColor.whiteColor;
|
||||
[self.view addSubview:self.collectionView];
|
||||
|
||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
|
@@ -93,6 +93,7 @@
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.view.backgroundColor = UIColor.whiteColor;
|
||||
[self.view addSubview:self.pagingView];
|
||||
[self.view addSubview:self.publishBtn];
|
||||
|
||||
|
@@ -95,6 +95,8 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
|
||||
@interface TabbarViewController () <BaseMvpProtocol, MainProtocol, NIMLoginManagerDelegate, NIMSystemNotificationManagerDelegate, NIMChatManagerDelegate, XPAnchorCardViewDelegate, NIMBroadcastManagerDelegate, XPRoomYearActivityViewDelegate>
|
||||
|
||||
/// 分割线
|
||||
@property (nonatomic, strong) UIView *lineView;
|
||||
@property (nonatomic, strong) MainPresenter *presenter;
|
||||
///房间最小化
|
||||
@property (nonatomic,strong) XPMiniRoomView *roomMineView;
|
||||
@@ -174,6 +176,11 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewDidLayoutSubviews {
|
||||
[super viewDidLayoutSubviews];
|
||||
self.lineView.frame = CGRectMake(0, 0, self.tabBar.frame.size.width, 1);
|
||||
}
|
||||
|
||||
- (MainPresenter *)presenter {
|
||||
if (_presenter == nil) {
|
||||
_presenter = [[MainPresenter alloc] init];
|
||||
@@ -533,6 +540,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
}
|
||||
|
||||
- (void)configTheme {
|
||||
[self.tabBar addSubview:self.lineView];
|
||||
self.view.backgroundColor = [ThemeColor tabbarViewColor];
|
||||
[[UITabBar appearance] setBackgroundImage:[UIImage imageWithColor:[ThemeColor tabbarViewColor] size:CGSizeMake(KScreenWidth, kTabBarHeight)]];
|
||||
[[UITabBar appearance] setShadowImage:[[UIImage alloc]init]];
|
||||
@@ -957,4 +965,12 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
return _giftBroadcastQueue;
|
||||
}
|
||||
|
||||
- (UIView *)lineView {
|
||||
if (!_lineView) {
|
||||
_lineView = [[UIView alloc] init];
|
||||
_lineView.backgroundColor = [ThemeColor colorWithHexString:@"#F4F4F6"];
|
||||
}
|
||||
return _lineView;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user