forked from xxhp/NGTabBarController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NGTabBarControllerDelegate.h
36 lines (27 loc) · 1.1 KB
/
NGTabBarControllerDelegate.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
//
// NGTabBarControllerDelegate.h
// NGTabBarController
//
// Created by Tretter Matthias on 14.02.12.
// Copyright (c) 2012 NOUS Wissensmanagement GmbH. All rights reserved.
//
#import "NGTabBarPosition.h"
@class NGTabBarController;
@class NGTabBarItem;
@protocol NGTabBarControllerDelegate <NSObject>
@required
/** Asks the delegate for the size of the given item */
- (CGSize)tabBarController:(NGTabBarController *)tabBarController
sizeOfItemForViewController:(UIViewController *)viewController
atIndex:(NSUInteger)index
position:(NGTabBarPosition)position;
@optional
/** Asks the delegate whether the specified view controller should be made active. */
- (BOOL)tabBarController:(NGTabBarController *)tabBarController
shouldSelectViewController:(UIViewController *)viewController
atIndex:(NSUInteger)index;
/** Tells the delegate that the user selected an item in the tab bar. */
- (void)tabBarController:(NGTabBarController *)tabBarController
didSelectViewController:(UIViewController *)viewController
atIndex:(NSUInteger)index;
@end