Commit cfd88a955c8f70c415f37c3e6d0c3bb703c088f7
1 parent
f2d88309
二级分类单独打开时显示不全问题修复
Showing
2 changed files
with
16 additions
and
15 deletions
CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveSubSegmentController.m
| ... | ... | @@ -189,24 +189,25 @@ |
| 189 | 189 | self.myCategoryView.top = kNavigationBarHeight; |
| 190 | 190 | }else{ |
| 191 | 191 | self.myCategoryView.top = 0; |
| 192 | + CGFloat width = self.searchBtn.left; | |
| 193 | + self.searchBtn.centerY = self.myCategoryView.height/2; | |
| 194 | + if ([self.channelId isEqualToString:@"219"]) { | |
| 195 | + self.moreBtn.right = self.searchBtn.left-15; | |
| 196 | + self.moreBtn.centerY = self.myCategoryView.height/2; | |
| 197 | + self.progressView.right = self.moreBtn.left-15; | |
| 198 | + self.progressView.centerY = self.myCategoryView.height/2; | |
| 199 | + width = self.progressView.left; | |
| 200 | + }else if ([self.channelId isEqualToString:@"11"]){ | |
| 201 | + self.historyBtn.right = self.searchBtn.left - 15; | |
| 202 | + self.historyBtn.centerY = self.myCategoryView.height/2; | |
| 203 | + width = self.historyBtn.left; | |
| 204 | + } | |
| 205 | + self.myCategoryView.width = width-10; | |
| 192 | 206 | } |
| 193 | 207 | |
| 194 | 208 | self.listContainerView.frame = CGRectMake(0, self.myCategoryView.bottom+10, kScreenWidth, self.view.bounds.size.height - self.myCategoryView.bottom -10); |
| 195 | 209 | self.searchBtn.right = KScreenWidth-12; |
| 196 | - CGFloat width = self.searchBtn.left; | |
| 197 | - self.searchBtn.centerY = self.myCategoryView.height/2; | |
| 198 | - if ([self.channelId isEqualToString:@"219"]) { | |
| 199 | - self.moreBtn.right = self.searchBtn.left-15; | |
| 200 | - self.moreBtn.centerY = self.myCategoryView.height/2; | |
| 201 | - self.progressView.right = self.moreBtn.left-15; | |
| 202 | - self.progressView.centerY = self.myCategoryView.height/2; | |
| 203 | - width = self.progressView.left; | |
| 204 | - }else if ([self.channelId isEqualToString:@"11"]){ | |
| 205 | - self.historyBtn.right = self.searchBtn.left - 15; | |
| 206 | - self.historyBtn.centerY = self.myCategoryView.height/2; | |
| 207 | - width = self.historyBtn.left; | |
| 208 | - } | |
| 209 | - self.myCategoryView.width = width-10; | |
| 210 | + | |
| 210 | 211 | } |
| 211 | 212 | |
| 212 | 213 | - (void)viewWillAppear:(BOOL)animated | ... | ... |