-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathVSTabBar.h
More file actions
58 lines (46 loc) · 1.58 KB
/
VSTabBar.h
File metadata and controls
58 lines (46 loc) · 1.58 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// VSTabBar.h
//
// Created by Vincent Saluzzo on 25/05/12.
// Copyright (c) 2012. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "VSTabBarItem.h"
#import "UIImage+ImageProcessing.h"
@class VSTabBar;
@protocol VSTabBarDelegate <NSObject>
-(void) tabBar:(VSTabBar*)tabBar selectedItemWithIndex:(NSInteger)index;
@end
@interface VSTabBar : UIView {
NSArray* _items;
BOOL _drawTitle;
BOOL _drawImage;
BOOL _showCurrentSelected;
BOOL _showSeparationBetweenItems;
BOOL _showSelectedItem;
BOOL _isTopBar;
UIColor* _backgroundColor;
UIColor* _selectionGradientColor;
UIColor* _currentSelectionIndicatorColor;
UIColor* _separatorColor;
UIColor* _foregroundColor;
NSInteger _selectedItem;
NSMutableArray* _itemsView;
NSInteger _currentItemViewed;
id<VSTabBarDelegate> delegate;
}
@property (nonatomic, assign) BOOL drawTitle;
@property (nonatomic, assign) BOOL drawImage;
@property (nonatomic, assign) BOOL showCurrentSelected;
@property (nonatomic, assign) BOOL showSeparationBetweenItems;
@property (nonatomic, assign) BOOL showSelectedItem;
@property (nonatomic, assign) BOOL isTopBar;
@property (nonatomic, retain) UIColor* backgroundColor;
@property (nonatomic, retain) UIColor* selectionGradientColor;
@property (nonatomic, retain) UIColor* currentSelectionIndicatorColor;
@property (nonatomic, retain) UIColor* separatorColor;
@property (nonatomic, retain) UIColor* foregroundColor;
@property (nonatomic, assign) id<VSTabBarDelegate> delegate;
-(void) setItems:(NSArray*)items;
-(void) selectItem:(NSInteger)index;
@end