| 123456789101112131415161718192021222324252627282930 |
- //
- // MenuView.h
- // YHMenu
- //
- // Created by Boris on 2018/5/10.
- // Copyright © 2018年 Boris. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef void(^TouchBlock)(void);
- typedef void(^IndexBlock)(NSInteger row);
- @interface MenuView : UIView<UITableViewDelegate, UITableViewDataSource>
- @property (nonatomic, strong) UIView *backView;
- @property (nonatomic, copy) TouchBlock touchBlock;
- @property (nonatomic, copy) IndexBlock indexBlock;
- @property (nonatomic, assign) CGPoint point;
- @property (nonatomic, assign) CGFloat layerHeight, layerWidth;
- @property (nonatomic, strong) UITableView *tableView;
- @property (nonatomic, strong) NSMutableArray *titleSource, *imgSource;
- - (id)initWithFrame:(CGRect)frame
- menuWidth:(CGFloat)width
- height:(CGFloat)height
- point:(CGPoint)point
- items:(NSArray *)items
- imgSource:(NSArray *)imgSource
- action:(void(^)(NSInteger index))action;
- @end
|