-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 1,2 @@ | ||
# ZFYTabbarController | ||
使用方法: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 12,12 @@ | |
#import "BaseNavigationViewController.h" | ||
#import "ThirdViewController.h" | ||
#import "UIImage Color.h" | ||
|
||
// 字体设置 | ||
#define TITLE_NORMAL_COLOR [UIColor colorWithRed:20/255.0 green:20/255.0 blue:120/255.0 alpha:1] | ||
#define TITLE_SELECTED_COLOR [UIColor colorWithRed:20/255.0 green:152/255.0 blue:172/255.0 alpha:1] | ||
#define TITLE_FONT [UIFont fontWithName:@"AmericanTypewriter" size:14.0f] | ||
|
||
@interface CustomController () | ||
|
||
@end | ||
|
@@ -39,8 45,8 @@ - (void)viewDidLoad { | |
} | ||
self.viewControllers=navigationArray; | ||
UITabBarItem *item = [UITabBarItem appearance]; | ||
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor purpleColor], NSFontAttributeName:[UIFont fontWithName:@"AmericanTypewriter" size:14.0f]} forState:UIControlStateNormal]; | ||
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor colorWithRed:20/255.0 green:152/255.0 blue:172/255.0 alpha:1], NSFontAttributeName:[UIFont fontWithName:@"AmericanTypewriter" size:14.0f]} forState:UIControlStateSelected]; | ||
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:TITLE_NORMAL_COLOR, NSFontAttributeName:TITLE_FONT} forState:UIControlStateNormal]; | ||
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:TITLE_SELECTED_COLOR, NSFontAttributeName:TITLE_FONT} forState:UIControlStateSelected]; | ||
//设置选择后的高亮 | ||
//self.tabBar.selectionIndicatorImage =[UIImage imageNamed:@"[email protected]"]; | ||
//设置背景 | ||
|
Binary file modified
BIN
1.03 KB
(100%)
...eproj/project.xcworkspace/xcuserdata/zhufengyi.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.