-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomTabBarViewController.h
48 lines (33 loc) · 1.11 KB
/
CustomTabBarViewController.h
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
//
// CustomTabBarViewController.h
// CustomTabBar
//
// Created by medma on 7/11/12.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TabSectionView.h"
#define k_iPhoneXIB @"CustomTabBarViewController_iPhone"
#define k_iPadXIB @"CustomTabBarViewController_iPad"
//@class TabSectionView;
@protocol CustomTabBarDelegate <NSObject>
@required
- (int)noOfTabsForTabView;
- (UIButton *) tabView:(UIView *)tabView buttonAtIndex : (NSInteger) index;
- (UITabBarController *) setTabBarController;
@optional
- (float) heightOftabView : (UIView *) customTabView;
//return k_iPhoneXIB or k_iPadXIB
- (NSString *) tabBarControllerForDevice;
@end
@interface CustomTabBarViewController : UIViewController {
id <CustomTabBarDelegate> delegate;
UIView *buttonContainerView;
}
@property (nonatomic, strong) id <CustomTabBarDelegate> delegate;
@property (nonatomic, strong) NSString *_nibNameString;
@property (nonatomic, strong) UIView *buttonContainerView;
@property (nonatomic, strong) IBOutlet UIImageView *bgImageView;
- (IBAction) onClick : (id) sender;
- (void) setTabBarDesign;
@end