Commit dd108730b18d89c93fc30ad6856d6a1d678fa9c2
1 parent
1980da07
修改Tabbar
Showing
1 changed file
with
2 additions
and
2 deletions
LiveVideoCloud/AppCustoms/Main/View/LVCTabBar.m
| @@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
| 49 | _liveBtn.height = 195 / 3; | 49 | _liveBtn.height = 195 / 3; |
| 50 | 50 | ||
| 51 | CGFloat buttonY = 19 - 3;//19 - 3.5; | 51 | CGFloat buttonY = 19 - 3;//19 - 3.5; |
| 52 | - CGFloat buttonW = (self.width - 195 / 3)/ 4; | 52 | + CGFloat buttonW = (self.width - 195 / 3)/ 2; |
| 53 | CGFloat buttonH = 30; | 53 | CGFloat buttonH = 30; |
| 54 | 54 | ||
| 55 | NSInteger index = 0; | 55 | NSInteger index = 0; |
| @@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
| 57 | if(subView.class != NSClassFromString(@"UITabBarButton"))continue; | 57 | if(subView.class != NSClassFromString(@"UITabBarButton"))continue; |
| 58 | 58 | ||
| 59 | CGFloat buttonX = index * buttonW; | 59 | CGFloat buttonX = index * buttonW; |
| 60 | - if (index >= 2) | 60 | + if (index >= 1) |
| 61 | { | 61 | { |
| 62 | buttonX += 195 / 3; | 62 | buttonX += 195 / 3; |
| 63 | } | 63 | } |