-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathMenuItem.h
executable file
·72 lines (55 loc) · 2.03 KB
/
MenuItem.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//
// MenuItem.h
// JackFastKit
//
// Created by 曾 宪华 on 14-10-13.
// Copyright (c) 2014年 华捷 iOS软件开发工程师 曾宪华. All rights reserved.
//
// ==========================================
// MenuItem 菜单元素 数据模型
// ==========================================
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MenuItem : NSObject
/**
* 标题
*/
@property (nonatomic, copy) NSString *title;
/**
* 配图
*/
@property (nonatomic, strong) UIImage *iconImage;
/**
*
*/
@property (nonatomic, strong) UIColor *glowColor;
/**
* 按钮索引
*/
@property (nonatomic, assign) NSInteger index;
#pragma mark - 初始话 init
- (instancetype)initWithTitle:(NSString *)title
iconName:(NSString *)iconName NS_AVAILABLE_IOS(2_0);
- (instancetype)initWithTitle:(NSString *)title
iconName:(NSString *)iconName
glowColor:(UIColor *)glowColor NS_AVAILABLE_IOS(2_0);
- (instancetype)initWithTitle:(NSString *)title
iconName:(NSString *)iconName
index:(NSInteger)index NS_AVAILABLE_IOS(2_0);
- (instancetype)initWithTitle:(NSString *)title
iconName:(NSString *)iconName
glowColor:(UIColor *)glowColor
index:(NSInteger)index NS_AVAILABLE_IOS(2_0);
+ (instancetype)itemWithTitle:(NSString *)title
iconName:(NSString *)iconName NS_AVAILABLE_IOS(2_0);
+ (instancetype)itemWithTitle:(NSString *)title
iconName:(NSString *)iconName
glowColor:(UIColor *)glowColor NS_AVAILABLE_IOS(2_0);
+ (instancetype)itemWithTitle:(NSString *)title
iconName:(NSString *)iconName
index:(NSInteger)index NS_AVAILABLE_IOS(2_0);
+ (instancetype)itemWithTitle:(NSString *)title
iconName:(NSString *)iconName
glowColor:(UIColor *)glowColor
index:(NSInteger)index NS_AVAILABLE_IOS(2_0);
@end