123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //
- // YOUPAILZLiveAudienceMessageListVC.m
- // TIANYAN
- //
- // Created by CY on 2021/5/28.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "YOUPAILZLiveAudienceMessageListVC.h"
- #import "YOUPAILCMessageVC.h"
- @interface YOUPAILZLiveAudienceMessageListVC ()
- @end
- @implementation YOUPAILZLiveAudienceMessageListVC
- - (void)viewWillAppear:(BOOL)animated{
- [super viewWillAppear:animated];
- self.navigationController.navigationBarHidden = YES;
- }
- - (void)viewWillDisappear:(BOOL)animated{
- [super viewWillDisappear:animated];
- self.navigationController.navigationBarHidden = NO;
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.view.backgroundColor = [UIColor whiteColor];
- [self youpaifinitUI];
- }
- - (void)youpaifinitUI{
- UILabel *titleL = [[UILabel alloc] init];
- titleL.font = LCFont(18.0f);
- titleL.textColor = HexColorFromRGB(0x333333);
- titleL.text = @"消息";
- [self.view addSubview:titleL];
- [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.offset(12.0f);
- make.top.offset(14.0f);
- }];
-
- YOUPAILCMessageVC *vc = [[YOUPAILCMessageVC alloc]init];
- [self addChildViewController:vc];
- [self.view addSubview:vc.view];
-
- [vc.view mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.equalTo(titleL.mas_bottom).offset(8.0f);
- make.left.right.offset(0.0f);
- make.bottom.offset(-SafeHeight);
- }];
- [vc.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.bottom.left.right.offset(0.0f);
- }];
- }
- @end
|