FDAction.m 659 B

12345678910111213141516171819202122232425
  1. //
  2. // FDAction.m
  3. // FDFoundationObjC
  4. //
  5. // Created by fandongtongxue on 2020/2/27.
  6. //
  7. #import "FDAction.h"
  8. @implementation FDAction
  9. - (instancetype)initWithTitle:(NSString *)title type:(FDActionType)type CallBack:(fd_handleAction _Nullable)fd_handleAction{
  10. if (self = [super init]) {
  11. self.title = title;
  12. self.fd_handleAction = fd_handleAction;
  13. self.type = type;
  14. }
  15. return self;
  16. }
  17. + (instancetype)actionWithTitle:(NSString *)title type:(FDActionType)type CallBack:(fd_handleAction _Nullable)fd_handleActionCallBack{
  18. return [[FDAction alloc] initWithTitle:title type:type CallBack:fd_handleActionCallBack];
  19. }
  20. @end