《省钱达人》与《猎豆优选》UI相同版。域名tbk

CCActionSheet.h 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // CCActionSheet.h
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/25.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol CCActionSheetDelegate;
  10. @interface CCActionSheet : UIView<UITableViewDataSource,UITableViewDelegate>
  11. {
  12. UITableView *_tableView;
  13. UIView *_sheetView;
  14. UIView *_alphaView;
  15. }
  16. @property (nonatomic, weak) id<CCActionSheetDelegate> delegate;
  17. @property (nonatomic, assign) NSInteger cancelButtonIndex;
  18. @property (nonatomic, assign) NSInteger destructiveButtonIndex;
  19. @property (nonatomic, copy) NSString *title;
  20. @property (nonatomic, copy) NSString *cancelButtonTitle;
  21. @property (nonatomic, copy) NSString *destructiveButtonTitle;
  22. @property (nonatomic, strong) NSMutableArray *otherButtonTitles;
  23. @property (nonatomic, readonly) NSInteger numberOfButtons;
  24. - (CCActionSheet *)initWithTitle:(NSString *)title delegate:(id<CCActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles;
  25. - (void)showInView:(UIView *)view;
  26. @end
  27. @protocol CCActionSheetDelegate <NSObject>
  28. @optional
  29. - (void)actionSheet:(CCActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex;
  30. @end