12345678910111213141516171819202122232425262728 |
- //
- // CustomActionSheetController.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/1/7.
- // Copyright © 2020 翟玉磊. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface CustomActionSheetController : UIViewController
- @property (nonatomic, readwrite, copy) NSString *titleString;
- @property (nonatomic, readwrite, copy) NSString *cancelString;
- - (instancetype)initWithTitle:(nullable NSString *)title categoryTitles:(NSArray *)titles cancel:(nullable NSString *)cancel selctedBlock:(void(^)(NSInteger index, NSString *title))block;
- /// 全屏显示,添加到windown上 建议使用此方法
- - (void)show;
- /// 显示到指定控制器上
- /// @param vc 父控制器不一定全屏
- - (void)showWithController:(UIViewController *)vc;
- @end
- NS_ASSUME_NONNULL_END
|