123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // CCActionSheet.h
- // YouHuiProject
- //
- // Created by 小花 on 2018/1/25.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @protocol CCActionSheetDelegate;
- @interface CCActionSheet : UIView<UITableViewDataSource,UITableViewDelegate>
- {
- UITableView *_tableView;
- UIView *_sheetView;
- UIView *_alphaView;
- }
- @property (nonatomic, weak) id<CCActionSheetDelegate> 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<CCActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles;
- - (void)showInView:(UIView *)view;
- @end
- @protocol CCActionSheetDelegate <NSObject>
- @optional
- - (void)actionSheet:(CCActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex;
- @end
|