FUPhotoButton.h 606 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // PhotoButton.h
  3. // FULiveDemo
  4. //
  5. // Created by liuyang on 2016/12/27.
  6. // Copyright © 2016年 liuyang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_OPTIONS(NSUInteger, FUPhotoButtonType) {
  10. FUPhotoButtonTypeRecord = 1 << 0,
  11. FUPhotoButtonTypeTakePhoto = 1 << 1,
  12. };
  13. @protocol FUPhotoButtonDelegate <NSObject>
  14. - (void)takePhoto;
  15. - (void)startRecord;
  16. - (void)stopRecord;
  17. @end
  18. @interface FUPhotoButton : UIButton
  19. @property (nonatomic, weak) id<FUPhotoButtonDelegate> delegate;
  20. @property (nonatomic, assign) FUPhotoButtonType type;
  21. -(void)photoButtonFinishRecord;
  22. @end