Skip to content

Commit 8400dfb

Browse files
committed
improved code formatting
1 parent 2119e91 commit 8400dfb

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Example/CYLTabBarControllerConfig.m

+13-12
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ - (void)setUpTabBarItemsAttributesForController:(CYLTabBarController *)tabBarCon
123123
*/
124124
- (void)customizeTabBarAppearance:(CYLTabBarController *)tabBarController {
125125
#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;
129129

130130
// set the text color for unselected state
131131
// 普通状态下的文字属性
@@ -145,12 +145,13 @@ - (void)customizeTabBarAppearance:(CYLTabBarController *)tabBarController {
145145

146146
// Set the dark color to selected tab (the dimmed background)
147147
// TabBarItem选中后的背景颜色
148-
// [self customizeTabBarSelectionIndicatorImage];
148+
// [self customizeTabBarSelectionIndicatorImage];
149149

150150
// 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];
154155

155156
// set the bar shadow image
156157
// 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 {
160161

161162
// set the bar background image
162163
// 设置背景图片
163-
// UITabBar *tabBarAppearance = [UITabBar appearance];
164-
// [tabBarAppearance setBackgroundImage:[UIImage imageNamed:@"tabbar_background"]];
164+
// UITabBar *tabBarAppearance = [UITabBar appearance];
165+
// [tabBarAppearance setBackgroundImage:[UIImage imageNamed:@"tabbar_background"]];
165166

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]];
169170
}
170171

171172
- (void)updateTabBarCustomizationWhenTabBarItemWidthDidUpdate {

0 commit comments

Comments
 (0)