// // CCActionSheet.h // YouHuiProject // // Created by 小花 on 2018/1/25. // Copyright © 2018年 kuxuan. All rights reserved. // #import @protocol CCActionSheetDelegate; @interface CCActionSheet : UIView { UITableView *_tableView; UIView *_sheetView; UIView *_alphaView; } @property (nonatomic, weak) id delegate; @property (nonatomic, assign) NSInteger cancelButtonIndex; @property (nonatomic, assign) NSInteger destructiveButtonIndex; @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *cancelButtonTitle; @property (nonatomic, copy) NSString *destructiveButtonTitle; @property (nonatomic, strong) NSMutableArray *otherButtonTitles; @property (nonatomic, readonly) NSInteger numberOfButtons; - (CCActionSheet *)initWithTitle:(NSString *)title delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles; - (void)showInView:(UIView *)view; @end @protocol CCActionSheetDelegate @optional - (void)actionSheet:(CCActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex; @end