54 lines
1.0 KiB
Objective-C
54 lines
1.0 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;
|
|
|
|
//@property (nonatomic, assign) id<TabBarItemDelegate> delegate;
|
|
|
|
/**
|
|
* <#Description#>
|
|
*
|
|
* @param array <#array description#>
|
|
*
|
|
* @return <#return value description#>
|
|
*/
|
|
- (instancetype) initWithSubItems:(NSArray*) array;
|
|
|
|
|
|
@end
|