Commit 9d9e51289d26c552be43089472f103ccd465839e
1 parent
bc71f0db
no message
Showing
4 changed files
with
6 additions
and
43 deletions
LiveVideoCloud/AppCustoms/Base/BaseViewController.m
| ... | ... | @@ -29,7 +29,8 @@ |
| 29 | 29 | // Do any additional setup after loading the view. |
| 30 | 30 | |
| 31 | 31 | self.view.backgroundColor = [UIColor whiteColor]; |
| 32 | - | |
| 32 | + self.navigationController.navigationBar.translucent = NO; | |
| 33 | + | |
| 33 | 34 | [self navigationSet]; |
| 34 | 35 | [self bindModel]; |
| 35 | 36 | [self bindView]; | ... | ... |
LiveVideoCloud/AppCustoms/Main/ZXNavigationController.m
| ... | ... | @@ -17,7 +17,7 @@ |
| 17 | 17 | - (void)viewDidLoad { |
| 18 | 18 | [super viewDidLoad]; |
| 19 | 19 | // Do any additional setup after loading the view. |
| 20 | - [UINavigationBar appearance].translucent = YES; | |
| 20 | +// [UINavigationBar appearance].translucent = YES; | |
| 21 | 21 | |
| 22 | 22 | self.interactivePopGestureRecognizer.delegate = self; |
| 23 | 23 | self.interactivePopGestureRecognizer.enabled = YES; | ... | ... |
LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCVerifyViewController.m
| ... | ... | @@ -36,7 +36,7 @@ |
| 36 | 36 | WKWebView *webView = [[WKWebView alloc]init]; |
| 37 | 37 | [self.view addSubview:webView]; |
| 38 | 38 | [webView mas_makeConstraints:^(MASConstraintMaker *make) { |
| 39 | - make.top.equalTo(self.view).offset(64); | |
| 39 | + make.top.equalTo(self.view).offset(0); | |
| 40 | 40 | make.left.right.bottom.equalTo(self.view); |
| 41 | 41 | }]; |
| 42 | 42 | webView.UIDelegate = self; | ... | ... |
LiveVideoCloud/Classes/Sections/homeSections/Controller/HomeViewController.m
| ... | ... | @@ -32,28 +32,8 @@ |
| 32 | 32 | |
| 33 | 33 | - (void)viewDidLoad { |
| 34 | 34 | [super viewDidLoad]; |
| 35 | - // Do any additional setup after loading the view. | |
| 36 | - self.view.backgroundColor = [UIColor whiteColor]; | |
| 35 | + | |
| 37 | 36 | self.navigationItem.title = @"首页"; |
| 38 | - self.navigationController.navigationBar.translucent = YES; | |
| 39 | - | |
| 40 | - UIButton *liveBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | |
| 41 | - liveBtn.frame = CGRectMake(0, 100, self.view.width, 40); | |
| 42 | - [liveBtn setTitle:@"电视台直播" forState:UIControlStateNormal]; | |
| 43 | - [liveBtn addTarget:self action:@selector(liveAction) forControlEvents:UIControlEventTouchUpInside]; | |
| 44 | - [self.view addSubview:liveBtn]; | |
| 45 | - | |
| 46 | - UIButton *UGCLiveBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | |
| 47 | - UGCLiveBtn.frame = CGRectMake(0, 200, self.view.width, 40); | |
| 48 | - [UGCLiveBtn setTitle:@"UGC直播" forState:UIControlStateNormal]; | |
| 49 | - [UGCLiveBtn addTarget:self action:@selector(UGCLiveAction) forControlEvents:UIControlEventTouchUpInside]; | |
| 50 | - [self.view addSubview:UGCLiveBtn]; | |
| 51 | - | |
| 52 | - UIButton *UGCLiveListBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | |
| 53 | - UGCLiveListBtn.frame = CGRectMake(0, 300, self.view.width, 40); | |
| 54 | - [UGCLiveListBtn setTitle:@"UGC直播列表" forState:UIControlStateNormal]; | |
| 55 | - [UGCLiveListBtn addTarget:self action:@selector(UGCLiveListAction) forControlEvents:UIControlEventTouchUpInside]; | |
| 56 | - [self.view addSubview:UGCLiveListBtn]; | |
| 57 | 37 | |
| 58 | 38 | _titleArr = @[@"直播",@"频道"]; |
| 59 | 39 | CGFloat width = 0; |
| ... | ... | @@ -76,24 +56,6 @@ |
| 76 | 56 | |
| 77 | 57 | } |
| 78 | 58 | |
| 79 | -- (void)liveAction | |
| 80 | -{ | |
| 81 | - LVCTVLiveViewController *liveVC = [[LVCTVLiveViewController alloc] init]; | |
| 82 | -// self.navigationController.navigationBar.hidden = YES; | |
| 83 | - [self.navigationController pushViewController:liveVC animated:YES]; | |
| 84 | -} | |
| 85 | - | |
| 86 | -- (void)UGCLiveAction | |
| 87 | -{ | |
| 88 | -// LVCUGCLivePlayerController *UGCLiveVC = [[LVCUGCLivePlayerController alloc] init]; | |
| 89 | -// [self.navigationController pushViewController:UGCLiveVC animated:YES]; | |
| 90 | -} | |
| 91 | - | |
| 92 | -- (void)UGCLiveListAction | |
| 93 | -{ | |
| 94 | - | |
| 95 | -} | |
| 96 | - | |
| 97 | 59 | #pragma mark - V8HorizontalPickerViewDataSource |
| 98 | 60 | |
| 99 | 61 | - (NSInteger)numberOfElementsInHorizontalPickerView:(V8HorizontalPickerView *)picker |
| ... | ... | @@ -192,7 +154,7 @@ |
| 192 | 154 | - (MHPagingScrollView *)pageView |
| 193 | 155 | { |
| 194 | 156 | if (!_pageView) { |
| 195 | - _pageView = [[MHPagingScrollView alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, SCREEN_HEIGHT-64-49)]; | |
| 157 | + _pageView = [[MHPagingScrollView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-49)]; | |
| 196 | 158 | _pageView.pagingDelegate = self; |
| 197 | 159 | _pageView.delegate = self; |
| 198 | 160 | _pageView.scrollsToTop = NO; | ... | ... |