Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (28 sloc) 1.03 KB
//
// NGTabBar.h
// NGTabBarController
//
// Created by Tretter Matthias on 14.02.12.
// Copyright (c) 2012 NOUS Wissensmanagement GmbH. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "NGTabBarPosition.h"
typedef enum {
NGTabBarLayoutStrategyStrungTogether = 0,
NGTabBarLayoutStrategyEvenlyDistributed,
NGTabBarLayoutStrategyCentered
} NGTabBarLayoutStrategy;
@interface NGTabBar : UIScrollView
@property (nonatomic, strong) NSArray *items;
@property (nonatomic, assign) NSUInteger selectedItemIndex;
@property (nonatomic, assign) NGTabBarPosition position;
@property (nonatomic, assign) NGTabBarLayoutStrategy layoutStrategy;
/** the padding to apply between items, not taken into account when layoutStrategy is EvenlyDistributed */
@property (nonatomic, assign) CGFloat itemPadding;
/** defaults to black */
@property (nonatomic, strong) UIColor *tintColor;
/** defaults to nil */
@property (nonatomic, strong) UIImage *backgroundImage;
- (void)selectItemAtIndex:(NSUInteger)index;
- (void)deselectSelectedItem;
@end
Jump to Line
Something went wrong with that request. Please try again.