├── NSVTabBar
├── custom-tab-app-images
│ ├── home.png
│ ├── maps.png
│ ├── home@2x.png
│ ├── maps@2x.png
│ ├── myplan.png
│ ├── tabbar.png
│ ├── myplan@2x.png
│ ├── settings.png
│ ├── tabbar@2x.png
│ ├── settings@2x.png
│ ├── home_selected.png
│ ├── maps_selected.png
│ ├── home_selected@2x.png
│ ├── maps_selected@2x.png
│ ├── myplan_selected.png
│ ├── settings_selected.png
│ ├── tabbar_selected.png
│ ├── myplan_selected@2x.png
│ ├── tabbar_selected@2x.png
│ ├── tabbar_selected@3x.png
│ └── settings_selected@2x.png
├── ViewController.h
├── NSVTabBarController.h
├── AppDelegate.h
├── main.m
├── ViewController.m
├── NSVBarController.h
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── AppDelegate.m
├── NSVTabBarController.m
└── NSVBarController.m
├── NSVTabBar.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── srinivas.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── srinivas.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── NSVTabBar.xcscheme
└── project.pbxproj
└── README.md
/NSVTabBar/custom-tab-app-images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/home.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/maps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/maps.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/home@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/home@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/maps@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/maps@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/myplan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/myplan.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/tabbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/tabbar.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/myplan@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/myplan@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/settings.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/tabbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/tabbar@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/settings@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/settings@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/home_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/home_selected.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/maps_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/maps_selected.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/home_selected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/home_selected@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/maps_selected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/maps_selected@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/myplan_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/myplan_selected.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/settings_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/settings_selected.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/tabbar_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/tabbar_selected.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/myplan_selected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/myplan_selected@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/tabbar_selected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/tabbar_selected@2x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/tabbar_selected@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/tabbar_selected@3x.png
--------------------------------------------------------------------------------
/NSVTabBar/custom-tab-app-images/settings_selected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar/custom-tab-app-images/settings_selected@2x.png
--------------------------------------------------------------------------------
/NSVTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/NSVTabBar.xcodeproj/project.xcworkspace/xcuserdata/srinivas.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srinivas656/NSVTabBar/HEAD/NSVTabBar.xcodeproj/project.xcworkspace/xcuserdata/srinivas.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/NSVTabBar/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // NSVTabBar
4 | //
5 | // Created by srinivas on 2/15/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/NSVTabBar/NSVTabBarController.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSVTabBarController.h
3 | // NSVTabBar
4 | //
5 | // Created by srinivas on 12/31/15.
6 | // Copyright © 2015 Microexcel. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSVTabBarController : UITabBarController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NSVTabBar/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // NSVTabBar
4 | //
5 | // Created by srinivas on 2/15/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/NSVTabBar/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // NSVTabBar
4 | //
5 | // Created by srinivas on 2/15/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/NSVTabBar/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // NSVTabBar
4 | //
5 | // Created by srinivas on 2/15/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view, typically from a nib.
20 | }
21 |
22 | - (void)didReceiveMemoryWarning {
23 | [super didReceiveMemoryWarning];
24 | // Dispose of any resources that can be recreated.
25 | }
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/NSVTabBar.xcodeproj/xcuserdata/srinivas.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | NSVTabBar.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | ACC084391C71C36B00EA6E34
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/NSVTabBar/NSVBarController.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSVBarController.h
3 | // NSVTabbar
4 | //
5 | // Created by srinivas on 2/10/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import "NSVTabBarController.h"
10 |
11 | #define NSAnimation_Bounce_Y 1
12 | #define NSAnimation_Bounce_X 2
13 |
14 | #define NSAnimation_FILP_BOTTOM 3
15 | #define NSAnimation_FILP_TOP 4
16 | #define NSAnimation_FILP_LEFT 5
17 | #define NSAnimation_FILP_RIGHT 6
18 |
19 | #define NSAnimation_Cross_Dissolve 7
20 | #define NSAnimation_Fade 8
21 |
22 | #define NSAnimation_CurlUp 9
23 | #define NSAnimation_CurlDown 10
24 |
25 | @interface NSVBarController : NSVTabBarController
26 |
27 | +(void)setTabBarTitleColor:(NSDictionary *)color ;
28 | +(void)settabBar:(UITabBar*)tabBar andImages:(NSArray *)images andSelectedImages:(NSArray *)selectedImages;
29 | +(void)setAnimation:(UITabBarController *)tabBarItemview andAnimationType:(NSInteger)animationID ;
30 | @end
31 |
--------------------------------------------------------------------------------
/NSVTabBar/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # NSVTabBar
2 | To Create the different animation on UITabBar Controller
3 |
4 | # List of Animations
5 |
6 | **1) BOUNCE**
7 |
8 | **2) FILP**
9 |
10 | **3) FADE**
11 |
12 | **4) CROSS-DISSOLVE**
13 |
14 | **5) CURL**
15 |
16 | # TabBar Images Conifgiration
17 |
18 | **To Create the TabBar icons as NSArray**
19 |
20 | NSArray *imagesArray = [NSArray arrayWithObjects:@"home.png",@"maps.png",@"myplan.png",@"settings.png",@"maps.png", nil];
21 |
22 | // To Create the TabBar icons as NSArray for selection time
23 |
24 | NSArray *selectedimgArray = [NSArray arrayWithObjects:@"home_selected.png",@"maps_selected.png",@"myplan_selected.png",@"settings_selected.png",@"maps_selected.png",nil];
25 |
26 | // Customize the tabBar images
27 |
28 | [NSVBarController settabBar:self.tabBar andImages:imagesArray andSelectedImages:selectedimgArray] ;
29 |
30 | # TabBar Title Customization
31 |
32 | **To Create the attribute dictionary for title for color and font**
33 |
34 | NSDictionary *Attribute = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], NSForegroundColorAttributeName,nil];
35 |
36 | // Customize the tabBar title
37 |
38 | [NSVBarController setTabBarTitleColor:Attribute] ;
39 |
40 | # TabBar Image Animation
41 | [NSVBarController setAnimation:tabBarController andAnimationType:NSAnimation_CurlDown];
42 |
43 | # SWIFT
44 | https://github.com/srinivas656/NSVTabbar-Swift
45 |
--------------------------------------------------------------------------------
/NSVTabBar/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/NSVTabBar/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/NSVTabBar/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // NSVTabBar
4 | //
5 | // Created by srinivas on 2/15/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/NSVTabBar/NSVTabBarController.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSTabBarController.m
3 | // NSTabbar
4 | //
5 | // Created by srinivas on 12/31/15.
6 | // Copyright © 2015 Microexcel. All rights reserved.
7 | //
8 |
9 | #import "NSVTabBarController.h"
10 | #import "NSVBarController.h"
11 |
12 | @interface NSVTabBarController ()
13 | @end
14 |
15 | @implementation NSVTabBarController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | self.delegate = self ;
20 | // Do any additional setup after loading the view.
21 |
22 |
23 | //*****// TabBar Icons Customization //*****//
24 |
25 | // To Create the TabBar icons as NSArray
26 | NSArray *imagesArray = [NSArray arrayWithObjects:@"home.png",@"maps.png",@"myplan.png",@"settings.png",@"maps.png", nil];
27 | // To Create the TabBar icons as NSArray for selection time
28 | NSArray *selectedimgArray = [NSArray arrayWithObjects:@"home_selected.png",@"maps_selected.png",@"myplan_selected.png",@"settings_selected.png",@"maps_selected.png",nil];
29 | // Customize the tabBar images
30 | [NSVBarController settabBar:self.tabBar andImages:imagesArray andSelectedImages:selectedimgArray] ;
31 |
32 | //*****//*****//*****//*****//*****//*****//*****//*****//
33 |
34 | //****// TabBar Title Customization //*****//
35 |
36 | // To Create the attribute dictionary for title for color and font
37 | NSDictionary *Attribute = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], NSForegroundColorAttributeName,nil];
38 | // Customize the tabBar title
39 | [NSVBarController setTabBarTitleColor:Attribute] ;
40 |
41 | //*****//*****//*****//*****//*****//*****//*****//*****//
42 |
43 | }
44 | - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController{
45 | @try {
46 | //****// TabBar Images Animations //*****//
47 | [NSVBarController setAnimation:tabBarController andAnimationType:NSAnimation_CurlDown];
48 | //*****//*****//*****//*****//*****//*****//*****//*****//
49 | }
50 | @catch (NSException *exception) {
51 | }
52 | @finally {
53 | }
54 | }
55 |
56 | - (void)didReceiveMemoryWarning {
57 | [super didReceiveMemoryWarning];
58 | // Dispose of any resources that can be recreated.
59 | }
60 |
61 | @end
62 |
--------------------------------------------------------------------------------
/NSVTabBar.xcodeproj/xcuserdata/srinivas.xcuserdatad/xcschemes/NSVTabBar.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/NSVTabBar/NSVBarController.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSVBarController.m
3 | // NSVTabbar
4 | //
5 | // Created by srinivas on 2/10/16.
6 | // Copyright © 2016 Microexcel. All rights reserved.
7 | //
8 |
9 | #import "NSVBarController.h"
10 | #define DEGREES_TO_RADIANS(degrees)((M_PI * degrees)/180)
11 |
12 | @implementation NSVBarController
13 |
14 |
15 | +(void)settabBar:(UITabBar*)tabBar andImages:(NSArray *)images andSelectedImages:(NSArray *)selectedImages;{
16 |
17 | @try {
18 | if (images.count != selectedImages.count) {
19 | NSLog(@"Tabbar Images and SelectedImages are not equal"); return ;
20 | }else if (images.count != tabBar.items.count){
21 | NSLog(@"Tabbar Buttons and Images are not equal"); return ;
22 | }else if (selectedImages.count != tabBar.items.count){
23 | NSLog(@"Tabbar Buttons and SelectedImages are not equal"); return ;
24 | }
25 | int index = 0 ;
26 | for (UITabBarItem * tabBarItem in tabBar.items) {
27 | [tabBarItem setImage:[[UIImage imageNamed:[images objectAtIndex:index]] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
28 | [tabBarItem setSelectedImage:[[UIImage imageNamed:[selectedImages objectAtIndex:index]] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
29 | index++ ;
30 | }
31 | }
32 | @catch (NSException *exception) {
33 | NSLog(@"%s:%@",__FUNCTION__,exception);
34 | }
35 | @finally {
36 | }
37 | }
38 |
39 | +(void)setTabBarTitleColor:(NSDictionary *)color {
40 | @try {
41 | [[UITabBarItem appearance] setTitleTextAttributes:color forState:UIControlStateNormal];
42 | }
43 | @catch (NSException *exception) {
44 | NSLog(@"%s:%@",__FUNCTION__,exception);
45 | }
46 | @finally {
47 | }
48 | }
49 |
50 | +(void)setAnimation:(UITabBarController *)tabBarController andAnimationType:(NSInteger)animationtype {
51 | @try {
52 | UITabBar *tabBar = tabBarController.tabBar;
53 | UIView *tabBarItemview = [self getImageViewForTabInTabBar:tabBar withIndex:tabBarController.selectedIndex];
54 | CGPoint origin = tabBarItemview.center;
55 | switch (animationtype) {
56 | case NSAnimation_Bounce_Y:{
57 | CGPoint target = CGPointMake(tabBarItemview.center.x, tabBarItemview.center.y+10);
58 | CABasicAnimation *bounce = [CABasicAnimation animationWithKeyPath:@"position.y"];
59 | bounce.duration = 0.4;
60 | bounce.fromValue = [NSNumber numberWithInt:origin.y];
61 | bounce.toValue = [NSNumber numberWithInt:target.y];
62 | bounce.repeatCount = 1;
63 | bounce.autoreverses = YES;
64 | [tabBarItemview.layer addAnimation:bounce forKey:@"position"];
65 | }break;
66 | case NSAnimation_Bounce_X:{
67 | CGPoint target = CGPointMake(tabBarItemview.center.x-5, tabBarItemview.center.y);
68 | CABasicAnimation *bounce = [CABasicAnimation animationWithKeyPath:@"position.x"];
69 | bounce.duration = 0.4;
70 | bounce.fromValue = [NSNumber numberWithInt:origin.x+5];
71 | bounce.toValue = [NSNumber numberWithInt:target.x];
72 | bounce.repeatCount = 1;
73 | bounce.autoreverses = YES;
74 | [tabBarItemview.layer addAnimation:bounce forKey:@"position"];
75 | }break;
76 | case NSAnimation_FILP_TOP:{
77 | [UIView transitionWithView:tabBarItemview
78 | duration:1.5
79 | options: UIViewAnimationOptionTransitionFlipFromTop
80 | animations:^{}
81 | completion:^(BOOL finished){
82 | //animCompleteHandlerCode..
83 | }];
84 | }break ;
85 | case NSAnimation_FILP_BOTTOM:{
86 | [UIView transitionWithView:tabBarItemview
87 | duration:1.5
88 | options: UIViewAnimationOptionTransitionFlipFromBottom
89 | animations:^{}
90 | completion:^(BOOL finished){
91 | //animCompleteHandlerCode..
92 | }];
93 | }break ;
94 | case NSAnimation_FILP_LEFT:{
95 | [UIView transitionWithView:tabBarItemview
96 | duration:1.5
97 | options: UIViewAnimationOptionTransitionFlipFromLeft
98 | animations:^{}
99 | completion:^(BOOL finished){
100 | //animCompleteHandlerCode..
101 | }];
102 | }break ;
103 | case NSAnimation_FILP_RIGHT:{
104 | [UIView transitionWithView:tabBarItemview
105 | duration:1.5
106 | options: UIViewAnimationOptionTransitionFlipFromRight
107 | animations:^{}
108 | completion:^(BOOL finished){
109 | //animCompleteHandlerCode..
110 | }];
111 | }break ;
112 | case NSAnimation_Cross_Dissolve:{
113 | [UIView transitionWithView:tabBarItemview
114 | duration:1.5
115 | options: UIViewAnimationOptionTransitionCrossDissolve
116 | animations:^{}
117 | completion:^(BOOL finished){
118 | //animCompleteHandlerCode..
119 | }];
120 | }break ;
121 | case NSAnimation_Fade:{
122 | [UIView animateWithDuration:0.6
123 | animations:^{
124 | tabBarItemview.alpha = 0;
125 | }
126 | completion:^(BOOL finished){
127 | // Do other things
128 | [UIView animateWithDuration:0.6
129 | animations:^{
130 | tabBarItemview.alpha = 1;
131 | }
132 | completion:^(BOOL finished){
133 | // Do other things
134 | }];
135 | }];
136 |
137 | }break ;
138 | case NSAnimation_CurlUp:{
139 | [UIView transitionWithView:tabBarItemview
140 | duration:1.5
141 | options: UIViewAnimationOptionTransitionCurlUp
142 | animations:^{}
143 | completion:^(BOOL finished){
144 | //animCompleteHandlerCode..
145 | }];
146 | }break ;
147 | case NSAnimation_CurlDown:{
148 | [UIView transitionWithView:tabBarItemview
149 | duration:1.5
150 | options: UIViewAnimationOptionTransitionCurlDown
151 | animations:^{}
152 | completion:^(BOOL finished){
153 | //animCompleteHandlerCode..
154 | }];
155 | }break ;
156 | default:
157 | break;
158 | }
159 | }
160 | @catch (NSException *exception) {
161 | NSLog(@"%s:%@",__FUNCTION__,exception);
162 | }
163 | @finally {
164 | }
165 | }
166 |
167 | +(UIView *)getImageViewForTabInTabBar:(UITabBar*)tabBar withIndex:(NSUInteger)index
168 | {
169 | @try {
170 | NSUInteger currentTabIndex = 0;
171 |
172 | for (UIView* subView in tabBar.subviews)
173 | {
174 | if ([subView isKindOfClass:NSClassFromString(@"UITabBarButton")])
175 | {
176 | if (currentTabIndex == index){
177 |
178 | for (UIView *imgView in subView.subviews) {
179 | if ([imgView isKindOfClass:NSClassFromString(@"UITabBarSwappableImageView")]){
180 | return imgView ;
181 | }
182 | }
183 | }
184 | else
185 | currentTabIndex++;
186 | }
187 | }
188 | NSAssert(NO, @"Index is out of bounds");
189 | return nil ;
190 | }
191 | @catch (NSException *exception) {
192 | }
193 | @finally {
194 | }
195 | }
196 |
197 | @end
198 |
--------------------------------------------------------------------------------
/NSVTabBar/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
--------------------------------------------------------------------------------
/NSVTabBar.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | ACC0843F1C71C36B00EA6E34 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = ACC0843E1C71C36B00EA6E34 /* main.m */; };
11 | ACC084421C71C36B00EA6E34 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = ACC084411C71C36B00EA6E34 /* AppDelegate.m */; };
12 | ACC084451C71C36B00EA6E34 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = ACC084441C71C36B00EA6E34 /* ViewController.m */; };
13 | ACC084481C71C36B00EA6E34 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = ACC084461C71C36B00EA6E34 /* Main.storyboard */; };
14 | ACC0844A1C71C36B00EA6E34 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = ACC084491C71C36B00EA6E34 /* Assets.xcassets */; };
15 | ACC0844D1C71C36B00EA6E34 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = ACC0844B1C71C36B00EA6E34 /* LaunchScreen.storyboard */; };
16 | ACC084581C71C42C00EA6E34 /* NSVTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = ACC084551C71C42C00EA6E34 /* NSVTabBarController.m */; };
17 | ACC084591C71C42C00EA6E34 /* NSVBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = ACC084571C71C42C00EA6E34 /* NSVBarController.m */; };
18 | ACC084701C71C45F00EA6E34 /* home.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0845B1C71C45F00EA6E34 /* home.png */; };
19 | ACC084711C71C45F00EA6E34 /* home@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0845C1C71C45F00EA6E34 /* home@2x.png */; };
20 | ACC084721C71C45F00EA6E34 /* home_selected.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0845D1C71C45F00EA6E34 /* home_selected.png */; };
21 | ACC084731C71C45F00EA6E34 /* home_selected@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0845E1C71C45F00EA6E34 /* home_selected@2x.png */; };
22 | ACC084741C71C45F00EA6E34 /* maps.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0845F1C71C45F00EA6E34 /* maps.png */; };
23 | ACC084751C71C45F00EA6E34 /* maps@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084601C71C45F00EA6E34 /* maps@2x.png */; };
24 | ACC084761C71C45F00EA6E34 /* maps_selected.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084611C71C45F00EA6E34 /* maps_selected.png */; };
25 | ACC084771C71C45F00EA6E34 /* maps_selected@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084621C71C45F00EA6E34 /* maps_selected@2x.png */; };
26 | ACC084781C71C45F00EA6E34 /* myplan.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084631C71C45F00EA6E34 /* myplan.png */; };
27 | ACC084791C71C45F00EA6E34 /* myplan@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084641C71C45F00EA6E34 /* myplan@2x.png */; };
28 | ACC0847A1C71C45F00EA6E34 /* myplan_selected.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084651C71C45F00EA6E34 /* myplan_selected.png */; };
29 | ACC0847B1C71C45F00EA6E34 /* myplan_selected@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084661C71C45F00EA6E34 /* myplan_selected@2x.png */; };
30 | ACC0847C1C71C45F00EA6E34 /* settings.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084671C71C45F00EA6E34 /* settings.png */; };
31 | ACC0847D1C71C45F00EA6E34 /* settings@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084681C71C45F00EA6E34 /* settings@2x.png */; };
32 | ACC0847E1C71C45F00EA6E34 /* settings_selected.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC084691C71C45F00EA6E34 /* settings_selected.png */; };
33 | ACC0847F1C71C45F00EA6E34 /* settings_selected@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0846A1C71C45F00EA6E34 /* settings_selected@2x.png */; };
34 | ACC084801C71C45F00EA6E34 /* tabbar.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0846B1C71C45F00EA6E34 /* tabbar.png */; };
35 | ACC084811C71C45F00EA6E34 /* tabbar@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0846C1C71C45F00EA6E34 /* tabbar@2x.png */; };
36 | ACC084821C71C45F00EA6E34 /* tabbar_selected.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0846D1C71C45F00EA6E34 /* tabbar_selected.png */; };
37 | ACC084831C71C45F00EA6E34 /* tabbar_selected@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0846E1C71C45F00EA6E34 /* tabbar_selected@2x.png */; };
38 | ACC084841C71C45F00EA6E34 /* tabbar_selected@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = ACC0846F1C71C45F00EA6E34 /* tabbar_selected@3x.png */; };
39 | /* End PBXBuildFile section */
40 |
41 | /* Begin PBXFileReference section */
42 | ACC0843A1C71C36B00EA6E34 /* NSVTabBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NSVTabBar.app; sourceTree = BUILT_PRODUCTS_DIR; };
43 | ACC0843E1C71C36B00EA6E34 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
44 | ACC084401C71C36B00EA6E34 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
45 | ACC084411C71C36B00EA6E34 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
46 | ACC084431C71C36B00EA6E34 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
47 | ACC084441C71C36B00EA6E34 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
48 | ACC084471C71C36B00EA6E34 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
49 | ACC084491C71C36B00EA6E34 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
50 | ACC0844C1C71C36B00EA6E34 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
51 | ACC0844E1C71C36B00EA6E34 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
52 | ACC084541C71C42C00EA6E34 /* NSVTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSVTabBarController.h; sourceTree = ""; };
53 | ACC084551C71C42C00EA6E34 /* NSVTabBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSVTabBarController.m; sourceTree = ""; };
54 | ACC084561C71C42C00EA6E34 /* NSVBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSVBarController.h; sourceTree = ""; };
55 | ACC084571C71C42C00EA6E34 /* NSVBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSVBarController.m; sourceTree = ""; };
56 | ACC0845B1C71C45F00EA6E34 /* home.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = home.png; sourceTree = ""; };
57 | ACC0845C1C71C45F00EA6E34 /* home@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "home@2x.png"; sourceTree = ""; };
58 | ACC0845D1C71C45F00EA6E34 /* home_selected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = home_selected.png; sourceTree = ""; };
59 | ACC0845E1C71C45F00EA6E34 /* home_selected@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "home_selected@2x.png"; sourceTree = ""; };
60 | ACC0845F1C71C45F00EA6E34 /* maps.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = maps.png; sourceTree = ""; };
61 | ACC084601C71C45F00EA6E34 /* maps@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "maps@2x.png"; sourceTree = ""; };
62 | ACC084611C71C45F00EA6E34 /* maps_selected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = maps_selected.png; sourceTree = ""; };
63 | ACC084621C71C45F00EA6E34 /* maps_selected@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "maps_selected@2x.png"; sourceTree = ""; };
64 | ACC084631C71C45F00EA6E34 /* myplan.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = myplan.png; sourceTree = ""; };
65 | ACC084641C71C45F00EA6E34 /* myplan@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "myplan@2x.png"; sourceTree = ""; };
66 | ACC084651C71C45F00EA6E34 /* myplan_selected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = myplan_selected.png; sourceTree = ""; };
67 | ACC084661C71C45F00EA6E34 /* myplan_selected@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "myplan_selected@2x.png"; sourceTree = ""; };
68 | ACC084671C71C45F00EA6E34 /* settings.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = settings.png; sourceTree = ""; };
69 | ACC084681C71C45F00EA6E34 /* settings@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "settings@2x.png"; sourceTree = ""; };
70 | ACC084691C71C45F00EA6E34 /* settings_selected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = settings_selected.png; sourceTree = ""; };
71 | ACC0846A1C71C45F00EA6E34 /* settings_selected@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "settings_selected@2x.png"; sourceTree = ""; };
72 | ACC0846B1C71C45F00EA6E34 /* tabbar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tabbar.png; sourceTree = ""; };
73 | ACC0846C1C71C45F00EA6E34 /* tabbar@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabbar@2x.png"; sourceTree = ""; };
74 | ACC0846D1C71C45F00EA6E34 /* tabbar_selected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tabbar_selected.png; sourceTree = ""; };
75 | ACC0846E1C71C45F00EA6E34 /* tabbar_selected@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabbar_selected@2x.png"; sourceTree = ""; };
76 | ACC0846F1C71C45F00EA6E34 /* tabbar_selected@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabbar_selected@3x.png"; sourceTree = ""; };
77 | /* End PBXFileReference section */
78 |
79 | /* Begin PBXFrameworksBuildPhase section */
80 | ACC084371C71C36B00EA6E34 /* Frameworks */ = {
81 | isa = PBXFrameworksBuildPhase;
82 | buildActionMask = 2147483647;
83 | files = (
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | /* End PBXFrameworksBuildPhase section */
88 |
89 | /* Begin PBXGroup section */
90 | ACC084311C71C36B00EA6E34 = {
91 | isa = PBXGroup;
92 | children = (
93 | ACC0843C1C71C36B00EA6E34 /* NSVTabBar */,
94 | ACC0843B1C71C36B00EA6E34 /* Products */,
95 | );
96 | sourceTree = "";
97 | };
98 | ACC0843B1C71C36B00EA6E34 /* Products */ = {
99 | isa = PBXGroup;
100 | children = (
101 | ACC0843A1C71C36B00EA6E34 /* NSVTabBar.app */,
102 | );
103 | name = Products;
104 | sourceTree = "";
105 | };
106 | ACC0843C1C71C36B00EA6E34 /* NSVTabBar */ = {
107 | isa = PBXGroup;
108 | children = (
109 | ACC084401C71C36B00EA6E34 /* AppDelegate.h */,
110 | ACC084411C71C36B00EA6E34 /* AppDelegate.m */,
111 | ACC084431C71C36B00EA6E34 /* ViewController.h */,
112 | ACC084441C71C36B00EA6E34 /* ViewController.m */,
113 | ACC084541C71C42C00EA6E34 /* NSVTabBarController.h */,
114 | ACC084551C71C42C00EA6E34 /* NSVTabBarController.m */,
115 | ACC084561C71C42C00EA6E34 /* NSVBarController.h */,
116 | ACC084571C71C42C00EA6E34 /* NSVBarController.m */,
117 | ACC084461C71C36B00EA6E34 /* Main.storyboard */,
118 | ACC084491C71C36B00EA6E34 /* Assets.xcassets */,
119 | ACC0844B1C71C36B00EA6E34 /* LaunchScreen.storyboard */,
120 | ACC0844E1C71C36B00EA6E34 /* Info.plist */,
121 | ACC0843D1C71C36B00EA6E34 /* Supporting Files */,
122 | );
123 | path = NSVTabBar;
124 | sourceTree = "";
125 | };
126 | ACC0843D1C71C36B00EA6E34 /* Supporting Files */ = {
127 | isa = PBXGroup;
128 | children = (
129 | ACC0845A1C71C45F00EA6E34 /* custom-tab-app-images */,
130 | ACC0843E1C71C36B00EA6E34 /* main.m */,
131 | );
132 | name = "Supporting Files";
133 | sourceTree = "";
134 | };
135 | ACC0845A1C71C45F00EA6E34 /* custom-tab-app-images */ = {
136 | isa = PBXGroup;
137 | children = (
138 | ACC0845B1C71C45F00EA6E34 /* home.png */,
139 | ACC0845C1C71C45F00EA6E34 /* home@2x.png */,
140 | ACC0845D1C71C45F00EA6E34 /* home_selected.png */,
141 | ACC0845E1C71C45F00EA6E34 /* home_selected@2x.png */,
142 | ACC0845F1C71C45F00EA6E34 /* maps.png */,
143 | ACC084601C71C45F00EA6E34 /* maps@2x.png */,
144 | ACC084611C71C45F00EA6E34 /* maps_selected.png */,
145 | ACC084621C71C45F00EA6E34 /* maps_selected@2x.png */,
146 | ACC084631C71C45F00EA6E34 /* myplan.png */,
147 | ACC084641C71C45F00EA6E34 /* myplan@2x.png */,
148 | ACC084651C71C45F00EA6E34 /* myplan_selected.png */,
149 | ACC084661C71C45F00EA6E34 /* myplan_selected@2x.png */,
150 | ACC084671C71C45F00EA6E34 /* settings.png */,
151 | ACC084681C71C45F00EA6E34 /* settings@2x.png */,
152 | ACC084691C71C45F00EA6E34 /* settings_selected.png */,
153 | ACC0846A1C71C45F00EA6E34 /* settings_selected@2x.png */,
154 | ACC0846B1C71C45F00EA6E34 /* tabbar.png */,
155 | ACC0846C1C71C45F00EA6E34 /* tabbar@2x.png */,
156 | ACC0846D1C71C45F00EA6E34 /* tabbar_selected.png */,
157 | ACC0846E1C71C45F00EA6E34 /* tabbar_selected@2x.png */,
158 | ACC0846F1C71C45F00EA6E34 /* tabbar_selected@3x.png */,
159 | );
160 | path = "custom-tab-app-images";
161 | sourceTree = "";
162 | };
163 | /* End PBXGroup section */
164 |
165 | /* Begin PBXNativeTarget section */
166 | ACC084391C71C36B00EA6E34 /* NSVTabBar */ = {
167 | isa = PBXNativeTarget;
168 | buildConfigurationList = ACC084511C71C36B00EA6E34 /* Build configuration list for PBXNativeTarget "NSVTabBar" */;
169 | buildPhases = (
170 | ACC084361C71C36B00EA6E34 /* Sources */,
171 | ACC084371C71C36B00EA6E34 /* Frameworks */,
172 | ACC084381C71C36B00EA6E34 /* Resources */,
173 | );
174 | buildRules = (
175 | );
176 | dependencies = (
177 | );
178 | name = NSVTabBar;
179 | productName = NSVTabBar;
180 | productReference = ACC0843A1C71C36B00EA6E34 /* NSVTabBar.app */;
181 | productType = "com.apple.product-type.application";
182 | };
183 | /* End PBXNativeTarget section */
184 |
185 | /* Begin PBXProject section */
186 | ACC084321C71C36B00EA6E34 /* Project object */ = {
187 | isa = PBXProject;
188 | attributes = {
189 | LastUpgradeCheck = 0710;
190 | ORGANIZATIONNAME = Microexcel;
191 | TargetAttributes = {
192 | ACC084391C71C36B00EA6E34 = {
193 | CreatedOnToolsVersion = 7.1;
194 | };
195 | };
196 | };
197 | buildConfigurationList = ACC084351C71C36B00EA6E34 /* Build configuration list for PBXProject "NSVTabBar" */;
198 | compatibilityVersion = "Xcode 3.2";
199 | developmentRegion = English;
200 | hasScannedForEncodings = 0;
201 | knownRegions = (
202 | en,
203 | Base,
204 | );
205 | mainGroup = ACC084311C71C36B00EA6E34;
206 | productRefGroup = ACC0843B1C71C36B00EA6E34 /* Products */;
207 | projectDirPath = "";
208 | projectRoot = "";
209 | targets = (
210 | ACC084391C71C36B00EA6E34 /* NSVTabBar */,
211 | );
212 | };
213 | /* End PBXProject section */
214 |
215 | /* Begin PBXResourcesBuildPhase section */
216 | ACC084381C71C36B00EA6E34 /* Resources */ = {
217 | isa = PBXResourcesBuildPhase;
218 | buildActionMask = 2147483647;
219 | files = (
220 | ACC084841C71C45F00EA6E34 /* tabbar_selected@3x.png in Resources */,
221 | ACC084831C71C45F00EA6E34 /* tabbar_selected@2x.png in Resources */,
222 | ACC0847F1C71C45F00EA6E34 /* settings_selected@2x.png in Resources */,
223 | ACC0847C1C71C45F00EA6E34 /* settings.png in Resources */,
224 | ACC0847B1C71C45F00EA6E34 /* myplan_selected@2x.png in Resources */,
225 | ACC084731C71C45F00EA6E34 /* home_selected@2x.png in Resources */,
226 | ACC084711C71C45F00EA6E34 /* home@2x.png in Resources */,
227 | ACC084801C71C45F00EA6E34 /* tabbar.png in Resources */,
228 | ACC084781C71C45F00EA6E34 /* myplan.png in Resources */,
229 | ACC0847D1C71C45F00EA6E34 /* settings@2x.png in Resources */,
230 | ACC084701C71C45F00EA6E34 /* home.png in Resources */,
231 | ACC0847E1C71C45F00EA6E34 /* settings_selected.png in Resources */,
232 | ACC084821C71C45F00EA6E34 /* tabbar_selected.png in Resources */,
233 | ACC0844D1C71C36B00EA6E34 /* LaunchScreen.storyboard in Resources */,
234 | ACC084751C71C45F00EA6E34 /* maps@2x.png in Resources */,
235 | ACC084811C71C45F00EA6E34 /* tabbar@2x.png in Resources */,
236 | ACC084791C71C45F00EA6E34 /* myplan@2x.png in Resources */,
237 | ACC084771C71C45F00EA6E34 /* maps_selected@2x.png in Resources */,
238 | ACC084761C71C45F00EA6E34 /* maps_selected.png in Resources */,
239 | ACC084741C71C45F00EA6E34 /* maps.png in Resources */,
240 | ACC0844A1C71C36B00EA6E34 /* Assets.xcassets in Resources */,
241 | ACC0847A1C71C45F00EA6E34 /* myplan_selected.png in Resources */,
242 | ACC084481C71C36B00EA6E34 /* Main.storyboard in Resources */,
243 | ACC084721C71C45F00EA6E34 /* home_selected.png in Resources */,
244 | );
245 | runOnlyForDeploymentPostprocessing = 0;
246 | };
247 | /* End PBXResourcesBuildPhase section */
248 |
249 | /* Begin PBXSourcesBuildPhase section */
250 | ACC084361C71C36B00EA6E34 /* Sources */ = {
251 | isa = PBXSourcesBuildPhase;
252 | buildActionMask = 2147483647;
253 | files = (
254 | ACC084451C71C36B00EA6E34 /* ViewController.m in Sources */,
255 | ACC084591C71C42C00EA6E34 /* NSVBarController.m in Sources */,
256 | ACC084421C71C36B00EA6E34 /* AppDelegate.m in Sources */,
257 | ACC0843F1C71C36B00EA6E34 /* main.m in Sources */,
258 | ACC084581C71C42C00EA6E34 /* NSVTabBarController.m in Sources */,
259 | );
260 | runOnlyForDeploymentPostprocessing = 0;
261 | };
262 | /* End PBXSourcesBuildPhase section */
263 |
264 | /* Begin PBXVariantGroup section */
265 | ACC084461C71C36B00EA6E34 /* Main.storyboard */ = {
266 | isa = PBXVariantGroup;
267 | children = (
268 | ACC084471C71C36B00EA6E34 /* Base */,
269 | );
270 | name = Main.storyboard;
271 | sourceTree = "";
272 | };
273 | ACC0844B1C71C36B00EA6E34 /* LaunchScreen.storyboard */ = {
274 | isa = PBXVariantGroup;
275 | children = (
276 | ACC0844C1C71C36B00EA6E34 /* Base */,
277 | );
278 | name = LaunchScreen.storyboard;
279 | sourceTree = "";
280 | };
281 | /* End PBXVariantGroup section */
282 |
283 | /* Begin XCBuildConfiguration section */
284 | ACC0844F1C71C36B00EA6E34 /* Debug */ = {
285 | isa = XCBuildConfiguration;
286 | buildSettings = {
287 | ALWAYS_SEARCH_USER_PATHS = NO;
288 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
289 | CLANG_CXX_LIBRARY = "libc++";
290 | CLANG_ENABLE_MODULES = YES;
291 | CLANG_ENABLE_OBJC_ARC = YES;
292 | CLANG_WARN_BOOL_CONVERSION = YES;
293 | CLANG_WARN_CONSTANT_CONVERSION = YES;
294 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
295 | CLANG_WARN_EMPTY_BODY = YES;
296 | CLANG_WARN_ENUM_CONVERSION = YES;
297 | CLANG_WARN_INT_CONVERSION = YES;
298 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
299 | CLANG_WARN_UNREACHABLE_CODE = YES;
300 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
301 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
302 | COPY_PHASE_STRIP = NO;
303 | DEBUG_INFORMATION_FORMAT = dwarf;
304 | ENABLE_STRICT_OBJC_MSGSEND = YES;
305 | ENABLE_TESTABILITY = YES;
306 | GCC_C_LANGUAGE_STANDARD = gnu99;
307 | GCC_DYNAMIC_NO_PIC = NO;
308 | GCC_NO_COMMON_BLOCKS = YES;
309 | GCC_OPTIMIZATION_LEVEL = 0;
310 | GCC_PREPROCESSOR_DEFINITIONS = (
311 | "DEBUG=1",
312 | "$(inherited)",
313 | );
314 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
315 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
316 | GCC_WARN_UNDECLARED_SELECTOR = YES;
317 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
318 | GCC_WARN_UNUSED_FUNCTION = YES;
319 | GCC_WARN_UNUSED_VARIABLE = YES;
320 | IPHONEOS_DEPLOYMENT_TARGET = 9.1;
321 | MTL_ENABLE_DEBUG_INFO = YES;
322 | ONLY_ACTIVE_ARCH = YES;
323 | SDKROOT = iphoneos;
324 | TARGETED_DEVICE_FAMILY = "1,2";
325 | };
326 | name = Debug;
327 | };
328 | ACC084501C71C36B00EA6E34 /* Release */ = {
329 | isa = XCBuildConfiguration;
330 | buildSettings = {
331 | ALWAYS_SEARCH_USER_PATHS = NO;
332 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
333 | CLANG_CXX_LIBRARY = "libc++";
334 | CLANG_ENABLE_MODULES = YES;
335 | CLANG_ENABLE_OBJC_ARC = YES;
336 | CLANG_WARN_BOOL_CONVERSION = YES;
337 | CLANG_WARN_CONSTANT_CONVERSION = YES;
338 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
339 | CLANG_WARN_EMPTY_BODY = YES;
340 | CLANG_WARN_ENUM_CONVERSION = YES;
341 | CLANG_WARN_INT_CONVERSION = YES;
342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
343 | CLANG_WARN_UNREACHABLE_CODE = YES;
344 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
345 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
346 | COPY_PHASE_STRIP = NO;
347 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
348 | ENABLE_NS_ASSERTIONS = NO;
349 | ENABLE_STRICT_OBJC_MSGSEND = YES;
350 | GCC_C_LANGUAGE_STANDARD = gnu99;
351 | GCC_NO_COMMON_BLOCKS = YES;
352 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
353 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
354 | GCC_WARN_UNDECLARED_SELECTOR = YES;
355 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
356 | GCC_WARN_UNUSED_FUNCTION = YES;
357 | GCC_WARN_UNUSED_VARIABLE = YES;
358 | IPHONEOS_DEPLOYMENT_TARGET = 9.1;
359 | MTL_ENABLE_DEBUG_INFO = NO;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | VALIDATE_PRODUCT = YES;
363 | };
364 | name = Release;
365 | };
366 | ACC084521C71C36B00EA6E34 /* Debug */ = {
367 | isa = XCBuildConfiguration;
368 | buildSettings = {
369 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
370 | INFOPLIST_FILE = NSVTabBar/Info.plist;
371 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
372 | PRODUCT_BUNDLE_IDENTIFIER = com.microexcel.NSVTabBar;
373 | PRODUCT_NAME = "$(TARGET_NAME)";
374 | };
375 | name = Debug;
376 | };
377 | ACC084531C71C36B00EA6E34 /* Release */ = {
378 | isa = XCBuildConfiguration;
379 | buildSettings = {
380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
381 | INFOPLIST_FILE = NSVTabBar/Info.plist;
382 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
383 | PRODUCT_BUNDLE_IDENTIFIER = com.microexcel.NSVTabBar;
384 | PRODUCT_NAME = "$(TARGET_NAME)";
385 | };
386 | name = Release;
387 | };
388 | /* End XCBuildConfiguration section */
389 |
390 | /* Begin XCConfigurationList section */
391 | ACC084351C71C36B00EA6E34 /* Build configuration list for PBXProject "NSVTabBar" */ = {
392 | isa = XCConfigurationList;
393 | buildConfigurations = (
394 | ACC0844F1C71C36B00EA6E34 /* Debug */,
395 | ACC084501C71C36B00EA6E34 /* Release */,
396 | );
397 | defaultConfigurationIsVisible = 0;
398 | defaultConfigurationName = Release;
399 | };
400 | ACC084511C71C36B00EA6E34 /* Build configuration list for PBXNativeTarget "NSVTabBar" */ = {
401 | isa = XCConfigurationList;
402 | buildConfigurations = (
403 | ACC084521C71C36B00EA6E34 /* Debug */,
404 | ACC084531C71C36B00EA6E34 /* Release */,
405 | );
406 | defaultConfigurationIsVisible = 0;
407 | };
408 | /* End XCConfigurationList section */
409 | };
410 | rootObject = ACC084321C71C36B00EA6E34 /* Project object */;
411 | }
412 |
--------------------------------------------------------------------------------