// // MenuView.h // YHMenu // // Created by Boris on 2018/5/10. // Copyright © 2018年 Boris. All rights reserved. // #import typedef void(^TouchBlock)(void); typedef void(^IndexBlock)(NSInteger row); @interface MenuView : UIView @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