悟空记账

HCBottomPopupAction.h 828B

1234567891011121314151617181920212223242526
  1. //
  2. // HCBottomPopupAction.h
  3. // Test2
  4. //
  5. // Created by hehaichi on 2017/12/15.
  6. // Copyright © 2017年 hehaichi. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. typedef NS_ENUM(NSInteger, HCBottomPopupActionSelectItemType) {
  11. HCBottomPopupActionSelectItemTypeDefault = 1,
  12. HCBottomPopupActionSelectItemTypeCancel = 2,
  13. };
  14. typedef void(^HCBottomPopupActionSelectItemBlock)(void);
  15. @interface HCBottomPopupAction : NSObject
  16. @property(nonatomic,strong)NSString * title;
  17. @property(nonatomic,assign)HCBottomPopupActionSelectItemType type;
  18. @property(nonatomic,copy)HCBottomPopupActionSelectItemBlock selectBlock;
  19. + (instancetype)actionWithTitle:(NSString *)title withSelectedBlock:(HCBottomPopupActionSelectItemBlock)selectBlock withType:(HCBottomPopupActionSelectItemType)type;
  20. @end