Skip to content
Newer
Older
100644 45 lines (35 sloc) 1.37 KB
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored Feb 14, 2012
1 //
010b803 @myell0w Renamed from NGVerticalTabBar to NGTabBar
myell0w authored Apr 16, 2012
2 // NGTabBar.h
3 // NGTabBarController
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored Feb 14, 2012
4 //
5 // Created by Tretter Matthias on 14.02.12.
6 // Copyright (c) 2012 NOUS Wissensmanagement GmbH. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
c0191ee @myell0w Re-done based on UIScrollView to allow positioning at top/left/bottom…
myell0w authored Apr 24, 2012
10 #import "NGTabBarPosition.h"
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored Feb 14, 2012
11
cb8d7ed @myell0w Different layoutStrategies for tabBar, lazy loading tabBar
myell0w authored Apr 25, 2012
12 typedef enum {
13 NGTabBarLayoutStrategyStrungTogether = 0,
14 NGTabBarLayoutStrategyEvenlyDistributed,
15 NGTabBarLayoutStrategyCentered
16 } NGTabBarLayoutStrategy;
17
18
c0191ee @myell0w Re-done based on UIScrollView to allow positioning at top/left/bottom…
myell0w authored Apr 24, 2012
19 @interface NGTabBar : UIScrollView
20
21 @property (nonatomic, strong) NSArray *items;
22 @property (nonatomic, assign) NSUInteger selectedItemIndex;
23 @property (nonatomic, assign) NGTabBarPosition position;
cb8d7ed @myell0w Different layoutStrategies for tabBar, lazy loading tabBar
myell0w authored Apr 25, 2012
24 @property (nonatomic, assign) NGTabBarLayoutStrategy layoutStrategy;
25 /** the padding to apply between items, not taken into account when layoutStrategy is EvenlyDistributed */
26 @property (nonatomic, assign) CGFloat itemPadding;
113d5a6 @myell0w Possibility to center items in tabBar
myell0w authored Apr 24, 2012
27
af720a5 @myell0w Background image and tintColor (somehow) for tabBar
myell0w authored Apr 26, 2012
28 /** defaults to black */
29 @property (nonatomic, strong) UIColor *tintColor;
30 /** defaults to nil */
31 @property (nonatomic, strong) UIImage *backgroundImage;
94505db @myell0w Draw item highlight in NGTabBar
myell0w authored Apr 26, 2012
32 /** flag whether the semi-transparent item highlight is shown */
443446f @myell0w Slightly better gloss drawing for NGTabBar
myell0w authored May 23, 2012
33 @property (nonatomic, assign) BOOL drawItemHighlight;
34 /** flag whether tabbar-gloss should be drawn */
35 @property (nonatomic, assign) BOOL drawGloss;
94505db @myell0w Draw item highlight in NGTabBar
myell0w authored Apr 26, 2012
36 /** defaults to white */
37 @property (nonatomic, strong) UIColor *itemHighlightColor;
af720a5 @myell0w Background image and tintColor (somehow) for tabBar
myell0w authored Apr 25, 2012
38
c0191ee @myell0w Re-done based on UIScrollView to allow positioning at top/left/bottom…
myell0w authored Apr 24, 2012
39 - (void)selectItemAtIndex:(NSUInteger)index;
40 - (void)deselectSelectedItem;
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored Feb 14, 2012
41
176e730 @myell0w First version of hidesBottomBarWhenPushed, won't work very well with …
myell0w authored May 21, 2012
42 - (UIImageView *)imageViewRepresentation;
43
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored Feb 14, 2012
44 @end
Something went wrong with that request. Please try again.