Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (37 sloc) 1.951 kb
9228fd4 @myell0w Created static library
myell0w authored
1 //
010b803 @myell0w Renamed from NGVerticalTabBar to NGTabBar
myell0w authored
2 // NGTabBarController.h
3 // NGTabBarController
9228fd4 @myell0w Created static library
myell0w authored
4 //
5 // Created by Tretter Matthias on 14.02.12.
6 // Copyright (c) 2012 NOUS Wissensmanagement GmbH. All rights reserved.
7 //
8
010b803 @myell0w Renamed from NGVerticalTabBar to NGTabBar
myell0w authored
9 #import "NGTabBarControllerDelegate.h"
10 #import "NGTabBar.h"
11 #import "NGTabBarControllerAnimation.h"
c0191ee @myell0w Re-done based on UIScrollView to allow positioning at top/left/bottom…
myell0w authored
12 #import "NGTabBarPosition.h"
13 #import "NGTabBarItem.h"
14 #import "UIViewController+NGTabBarItem.h"
1941e20 @kflip added dynamic tabBarCell height
kflip authored
15
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored
16
b06156d @myell0w Added property to access enclosing NGTabBarController to UIViewContro…
myell0w authored
17 #define kNGTabBarControllerKey @"kNGTabBarControllerKey"
18
19
c0191ee @myell0w Re-done based on UIScrollView to allow positioning at top/left/bottom…
myell0w authored
20 /** NGTabBarController is a customized TabBar displayed on any side of the device */
176e730 @myell0w First version of hidesBottomBarWhenPushed, won't work very well with …
myell0w authored
21 @interface NGTabBarController : UIViewController <UINavigationControllerDelegate>
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored
22
23 /** An array of the view controllers displayed by the tab bar */
24 @property (nonatomic, copy) NSArray *viewControllers;
25 /** The index of the view controller associated with the currently selected tab item. */
26 @property (nonatomic, assign) NSUInteger selectedIndex;
27 /** The view controller associated with the currently selected tab item. */
28 @property (nonatomic, unsafe_unretained) UIViewController *selectedViewController;
29
30 /** The tab bar controller’s delegate object. */
010b803 @myell0w Renamed from NGVerticalTabBar to NGTabBar
myell0w authored
31 @property (nonatomic, unsafe_unretained) id<NGTabBarControllerDelegate> delegate;
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored
32
33 /** The tableView used to display all tab bar elements */
010b803 @myell0w Renamed from NGVerticalTabBar to NGTabBar
myell0w authored
34 @property (nonatomic, strong, readonly) NGTabBar *tabBar;
c0191ee @myell0w Re-done based on UIScrollView to allow positioning at top/left/bottom…
myell0w authored
35 /** The postion of the tabBar on screen (top/left/bottom/right) */
36 @property (nonatomic, assign) NGTabBarPosition tabBarPosition;
5a8275a @myell0w Mimicing UITabBarController's API
myell0w authored
37
42bbea6 @myell0w Added different animation options for iOS 5
myell0w authored
38 /** The animation used when changing selected tabBarItem, default: none */
010b803 @myell0w Renamed from NGVerticalTabBar to NGTabBar
myell0w authored
39 @property (nonatomic, assign) NGTabBarControllerAnimation animation;
42bbea6 @myell0w Added different animation options for iOS 5
myell0w authored
40 /** The duration of the used animation, only taken into account when animation is different from none */
41 @property (nonatomic, assign) NSTimeInterval animationDuration;
42
5971277 @myell0w TabBarItem Highlight, hide TabBar
myell0w authored
43 @property (nonatomic, assign) BOOL tabBarHidden;
44
94505db @myell0w Draw item highlight in NGTabBar
myell0w authored
45
46 /** The designated initializer. */
47 - (id)initWithDelegate:(id<NGTabBarControllerDelegate>)delegate;
5971277 @myell0w TabBarItem Highlight, hide TabBar
myell0w authored
48
94505db @myell0w Draw item highlight in NGTabBar
myell0w authored
49 - (void)setTabBarHidden:(BOOL)tabBarHidden animated:(BOOL)animated;
9228fd4 @myell0w Created static library
myell0w authored
50
51 @end
Something went wrong with that request. Please try again.