forked from b051/RSMenuView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRSMenuView.h
More file actions
44 lines (30 loc) · 1.41 KB
/
RSMenuView.h
File metadata and controls
44 lines (30 loc) · 1.41 KB
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
//
// RSMenuView.h
//
// Created by Rex Sheng on 10/16/12.
// Copyright (c) 2012 Log(n) LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RSMenuView;
@protocol RSMenuViewDelegate <NSObject>
@optional
- (void)menuView:(RSMenuView *)menuView didSelectItemWithIdentifier:(NSString *)identifier;
- (NSDictionary *)menuView:(RSMenuView *)menuView attributesForItemWithIdentifier:(NSString *)identifier;
@end
@interface RSMenuView : UIView
@property (nonatomic) UITableViewRowAnimation rowAnimation;
@property (nonatomic, strong) UIColor *textColor UI_APPEARANCE_SELECTOR;
@property (nonatomic, strong) UIColor *highlightedTextColor UI_APPEARANCE_SELECTOR;
@property (nonatomic) CGFloat rowHeight UI_APPEARANCE_SELECTOR;
@property (nonatomic) UIEdgeInsets rowEdgeInsets UI_APPEARANCE_SELECTOR;
@property (nonatomic) CGSize textShadowOffset UI_APPEARANCE_SELECTOR;
@property (nonatomic, weak) id<RSMenuViewDelegate> delegate;
- (void)setItems:(NSArray *)configuration;
- (void)insertItem:(NSDictionary *)item atRow:(NSUInteger)row;
- (void)deleteItemAtRow:(NSUInteger)row;
- (void)replaceItemAtRow:(NSUInteger)row withItem:(NSDictionary *)item;
- (void)performBatchUpdates:(dispatch_block_t)updates;
- (void)setTextFont:(UIFont *)font forIndent:(NSUInteger)indent UI_APPEARANCE_SELECTOR;
- (UIFont *)textFontForIndent:(NSUInteger)indent UI_APPEARANCE_SELECTOR;
- (void)setItemSelectedWithIdentifier:(NSString *)identifier;
@end