@@ -123,9 +123,9 @@ - (void)setUpTabBarItemsAttributesForController:(CYLTabBarController *)tabBarCon
123
123
*/
124
124
- (void )customizeTabBarAppearance : (CYLTabBarController *)tabBarController {
125
125
#warning CUSTOMIZE YOUR TABBAR APPEARANCE
126
- // Customize UITabBar height
127
- // 自定义 TabBar 高度
128
- // tabBarController.tabBarHeight = 40.f;
126
+ // Customize UITabBar height
127
+ // 自定义 TabBar 高度
128
+ // tabBarController.tabBarHeight = 40.f;
129
129
130
130
// set the text color for unselected state
131
131
// 普通状态下的文字属性
@@ -145,12 +145,13 @@ - (void)customizeTabBarAppearance:(CYLTabBarController *)tabBarController {
145
145
146
146
// Set the dark color to selected tab (the dimmed background)
147
147
// TabBarItem选中后的背景颜色
148
- // [self customizeTabBarSelectionIndicatorImage];
148
+ // [self customizeTabBarSelectionIndicatorImage];
149
149
150
150
// update TabBar when TabBarItem width did update
151
- // If your app need support UIDeviceOrientationLandscapeLeft or UIDeviceOrientationLandscapeRight, remove the comment '//'
152
- // 如果你的App需要支持横竖屏,请使用该方法移除注释 '//'
153
- // [self updateTabBarCustomizationWhenTabBarItemWidthDidUpdate];
151
+ // If your app need support UIDeviceOrientationLandscapeLeft or UIDeviceOrientationLandscapeRight,
152
+ // remove the comment '//'
153
+ // 如果你的App需要支持横竖屏,请使用该方法移除注释 '//'
154
+ // [self updateTabBarCustomizationWhenTabBarItemWidthDidUpdate];
154
155
155
156
// set the bar shadow image
156
157
// This shadow image attribute is ignored if the tab bar does not also have a custom background image.So at least set somthing.
@@ -160,12 +161,12 @@ - (void)customizeTabBarAppearance:(CYLTabBarController *)tabBarController {
160
161
161
162
// set the bar background image
162
163
// 设置背景图片
163
- // UITabBar *tabBarAppearance = [UITabBar appearance];
164
- // [tabBarAppearance setBackgroundImage:[UIImage imageNamed:@"tabbar_background"]];
164
+ // UITabBar *tabBarAppearance = [UITabBar appearance];
165
+ // [tabBarAppearance setBackgroundImage:[UIImage imageNamed:@"tabbar_background"]];
165
166
166
- // remove the bar system shadow image
167
- // 去除 TabBar 自带的顶部阴影
168
- // [[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
167
+ // remove the bar system shadow image
168
+ // 去除 TabBar 自带的顶部阴影
169
+ // [[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
169
170
}
170
171
171
172
- (void )updateTabBarCustomizationWhenTabBarItemWidthDidUpdate {
0 commit comments