1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // BottomBasePopupController.h
- // mask
- //
- // Created by 翟玉磊 on 2018/12/24.
- // Copyright © 2018 翟玉磊. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef void(^SelectedDidBlock)(NSInteger index);
- typedef void(^cancelActionBlock)(void);
- NS_ASSUME_NONNULL_BEGIN
- @interface BottomBasePopupController : UIViewController
- /// 标题
- @property (nonatomic, readwrite, copy) NSString *titleString;
- /// 选项
- @property (nonatomic, readwrite, strong) NSArray *dataArray;
- @property (nonatomic, readwrite, strong) UIViewController *parentController;
- @property (nonatomic, readwrite, copy) SelectedDidBlock selectedDidBlock;
- @property (nonatomic, readwrite, copy) cancelActionBlock cancelActionBlock;
- - (instancetype)initWithTitle:(NSString *)title categoryTitles:(NSArray *)titles target:(UIViewController *)target selctedBlock:(void(^)(NSInteger index))block;
- - (void)show;
- /// 显示到指定控制器上
- - (void)showWithController:(UIViewController *)controller;
- - (void)dismiss;
- @end
- NS_ASSUME_NONNULL_END
|