dkahgld

STPhotoKitController.h 794B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // STPhotoKitController.h
  3. // STPhotoKit
  4. //
  5. // Created by 沈兆良 on 16/2/26.
  6. // Copyright © 2016年 沈兆良. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class STPhotoKitController;
  11. @protocol STPhotoKitDelegate <NSObject>
  12. - (void)photoKitController:(STPhotoKitController *)photoKitController
  13. resultImage:(UIImage *)resultImage;
  14. @end
  15. @interface STPhotoKitController : UIViewController
  16. /** 1.原始图片, 必须设置*/
  17. @property (nonatomic, strong) UIImage *imageOriginal;
  18. /** 2.图片的尺寸,剪切框,最好是需求图片的2x, 默认是CGSizeMake(ScreenWidth, ScreenWidth); */
  19. @property (nonatomic, assign) CGSize sizeClip;
  20. @property (nullable, nonatomic, weak)id <STPhotoKitDelegate>delegate ;
  21. @end
  22. NS_ASSUME_NONNULL_END