-
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.
1.增加了系列的宏定义,建立基本的类RootViewController 所有的子类都继承于此类
- Loading branch information
Showing
49 changed files
with
240 additions
and
279 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 1,3 @@ | ||
# 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 |
---|---|---|
|
@@ -11,13 11,12 @@ | |
#import "SecondViewController.h" | ||
#import "BaseNavigationViewController.h" | ||
#import "ThirdViewController.h" | ||
#import "UIImage Color.h" | ||
|
||
#import "ZFYTabbar.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] | ||
|
||
//#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 | ||
|
@@ -45,12 44,8 @@ - (void)viewDidLoad { | |
} | ||
self.viewControllers=navigationArray; | ||
UITabBarItem *item = [UITabBarItem appearance]; | ||
[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]"]; | ||
//设置背景 | ||
self.tabBar.backgroundColor = [UIColor blueColor]; | ||
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:Tab_TITLE_NORMAL_COLOR, NSFontAttributeName:Tab_TITLE_FONT} forState:UIControlStateNormal]; | ||
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:Tab_TITLE_SELECTED_COLOR, NSFontAttributeName:Tab_TITLE_FONT} forState:UIControlStateSelected]; | ||
} | ||
|
||
- (void)didReceiveMemoryWarning { | ||
|
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 1,34 @@ | ||
// | ||
// ZFYTabbar.h | ||
// ZFYTabbarController | ||
// | ||
// Created by 朱封毅 on 04/07/15. | ||
// Copyright (c) 2015年 朱封毅. All rights reserved. | ||
// | ||
|
||
#ifndef ZFYTabbarController_ZFYTabbar_h | ||
#define ZFYTabbarController_ZFYTabbar_h | ||
#import "UIImage Color.h" | ||
|
||
#pragma mark ---Navigation config | ||
|
||
//导航栏色调设置 | ||
#define Nav_tintColor [UIColor colorWithRed:100.0/255.0 green:100.0/255.0 blue:100.0/255.0 alpha:1]; | ||
//导航栏的背景颜色 | ||
#define Nav_background_Color [UIColor colorWithRed:180.0/255.0 green:180.0/255.0 blue:180.0/255.0 alpha:1] | ||
//导航栏的标题字体大小 | ||
#define Nav_Title_Font [UIFont boldSystemFontOfSize:16] | ||
//导航栏的标题颜色 | ||
#define Nav_Title_Color [UIColor colorWithRed:10.0/255.0 green:120.0/255.0 blue:100.0/255.0 alpha:1] | ||
//设置返回按钮的图片 | ||
#define Nav_back_icon [[UIImage imageNamed:@"back_Icon.png"] | ||
|
||
|
||
#pragma mark ---Tabbar config | ||
// 字体设置 | ||
#define Tab_TITLE_NORMAL_COLOR [UIColor colorWithRed:20/255.0 green:20/255.0 blue:120/255.0 alpha:1] | ||
#define Tab_TITLE_SELECTED_COLOR [UIColor colorWithRed:20/255.0 green:152/255.0 blue:172/255.0 alpha:1] | ||
#define Tab_TITLE_FONT [UIFont fontWithName:@"AmericanTypewriter" size:14.0f] | ||
|
||
|
||
#endif |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.