-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathInfiniTabBar.h
36 lines (29 loc) · 1.04 KB
/
InfiniTabBar.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
//
// InfiniTabBar.h
// Created by http://github.com/iosdeveloper
//
#import <UIKit/UIKit.h>
@protocol InfiniTabBarDelegate;
@interface InfiniTabBar : UIScrollView <UIScrollViewDelegate, UITabBarDelegate> {
id <InfiniTabBarDelegate> infiniTabBarDelegate;
NSMutableArray *tabBars;
UITabBar *aTabBar;
UITabBar *bTabBar;
}
@property (nonatomic, assign) id infiniTabBarDelegate;
@property (nonatomic, retain) NSMutableArray *tabBars;
@property (nonatomic, retain) UITabBar *aTabBar;
@property (nonatomic, retain) UITabBar *bTabBar;
- (id)initWithItems:(NSArray *)items;
- (void)setBounces:(BOOL)bounces;
// Don't set more items than initially
- (void)setItems:(NSArray *)items animated:(BOOL)animated;
- (int)currentTabBarTag;
- (int)selectedItemTag;
- (BOOL)scrollToTabBarWithTag:(int)tag animated:(BOOL)animated;
- (BOOL)selectItemWithTag:(int)tag;
@end
@protocol InfiniTabBarDelegate <NSObject>
- (void)infiniTabBar:(InfiniTabBar *)tabBar didScrollToTabBarWithTag:(int)tag;
- (void)infiniTabBar:(InfiniTabBar *)tabBar didSelectItemWithTag:(int)tag;
@end