KKImageToolBase.m 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // KKImageToolBase.m
  3. // WWImageEdit
  4. //
  5. // Created by 邬维 on 2017/1/3.
  6. // Copyright © 2017年 kook. All rights reserved.
  7. //
  8. #import "KKImageToolBase.h"
  9. @implementation KKImageToolBase
  10. - (id)initWithImageEditor:(KKImageEditorViewController*)editor withToolInfo:(KKImageToolInfo *)info{
  11. self = [super init];
  12. if(self){
  13. self.editor = editor;
  14. self.toolInfo = info;
  15. }
  16. return self;
  17. }
  18. - (void)setup
  19. {
  20. }
  21. - (void)cleanup
  22. {
  23. }
  24. - (void)executeWithCompletionBlock:(void(^)(UIImage *image, NSError *error, NSDictionary *userInfo))completionBlock
  25. {
  26. completionBlock(self.editor.imageView.image, nil, nil);
  27. }
  28. #pragma mark- protocol
  29. + (UIImage*)defaultIconImage{
  30. return nil;
  31. }
  32. + (NSString*)defaultTitle{
  33. return @"toolTitle";
  34. }
  35. + (NSArray*)subtools{
  36. return nil;
  37. }
  38. + (NSUInteger)orderNum{
  39. return 0;
  40. }
  41. @end