Commit cfd88a955c8f70c415f37c3e6d0c3bb703c088f7
1 parent
f2d88309
二级分类单独打开时显示不全问题修复
Showing
2 changed files
with
16 additions
and
15 deletions
CNLiveVideoClassifyKit.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveVideoClassifyKit' | 10 | s.name = 'CNLiveVideoClassifyKit' |
| 11 | - s.version = '0.0.33' | 11 | + s.version = '0.0.34' |
| 12 | s.summary = '视讯头部一二级菜单组件' | 12 | s.summary = '视讯头部一二级菜单组件' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveSubSegmentController.m
| @@ -189,24 +189,25 @@ | @@ -189,24 +189,25 @@ | ||
| 189 | self.myCategoryView.top = kNavigationBarHeight; | 189 | self.myCategoryView.top = kNavigationBarHeight; |
| 190 | }else{ | 190 | }else{ |
| 191 | self.myCategoryView.top = 0; | 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 | self.listContainerView.frame = CGRectMake(0, self.myCategoryView.bottom+10, kScreenWidth, self.view.bounds.size.height - self.myCategoryView.bottom -10); | 208 | self.listContainerView.frame = CGRectMake(0, self.myCategoryView.bottom+10, kScreenWidth, self.view.bounds.size.height - self.myCategoryView.bottom -10); |
| 195 | self.searchBtn.right = KScreenWidth-12; | 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 | - (void)viewWillAppear:(BOOL)animated | 213 | - (void)viewWillAppear:(BOOL)animated |