TabBarPicker/Pod/Classes/TabBarItem.h
2015-07-21 09:21:33 +02:00

56 lines
1.1 KiB
Objective-C

//
// TabBarItem.h
// Pods
//
// Created by Giuseppe Nucifora on 15/07/15.
//
//
#import <Foundation/Foundation.h>
#import "TabBarSubItem.h"
@class TabBarItem;
@protocol TabBarItemDelegate <NSObject>
@required
- (void) tabBarItemSelected:(TabBarItem*) selectedItem;
@end
@interface TabBarItem : UIView
/**
* Represents the image visible in picker when item is not selected.
*/
@property (nonatomic, strong) UIImage *image;
/**
* Represents the image visible in picker when item is selected.
*/
@property (nonatomic, strong) UIImage *selectedImage;
/**
* Represents the name of the item that can be shown in picker.
*/
@property (nonatomic, strong) NSString *itemName;
/**
* Represents the sub items that appeare when you select the item in picker.
*/
@property (nonatomic, strong) NSMutableArray *subItems;
/**
* <#Description#>
*/
@property (nonatomic, assign) id<TabBarItemDelegate> delegate;
/**
* <#Description#>
*
* @param array <#array description#>
*
* @return <#return value description#>
*/
- (instancetype) initWithSubItems:(NSArray*) array;
@end