forked from iosdeveloper/InfiniTabBar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfiniTabBar.h
More file actions
44 lines (36 loc) · 1.35 KB
/
InfiniTabBar.h
File metadata and controls
44 lines (36 loc) · 1.35 KB
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
//
// 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;
UIImageView *imageviewleft;
UIImageView *imageviewright;
UIImageView *arrow;
}
@property (nonatomic, assign) id infiniTabBarDelegate;
@property (nonatomic, retain) NSMutableArray *tabBars;
@property (nonatomic, retain) UITabBar *aTabBar;
@property (nonatomic, retain) UITabBar *bTabBar;
@property (nonatomic, retain) UIImageView *arrow;
-(void)arrowDecoration;
- (id)initWithFrameAndItems:(CGRect)frame items:(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;
- (void)positionArrowAnimated:(BOOL)animated;
@end
@protocol InfiniTabBarDelegate <NSObject>
- (void)infiniTabBar:(InfiniTabBar *)tabBar didScrollToTabBarWithTag:(int)tag;
- (BOOL)infiniTabBar:(InfiniTabBar *)tabBar willSelectItemWithTag:(int)tag;
- (void)infiniTabBar:(InfiniTabBar *)tabBar didSelectItemWithTag:(int)tag;
@end