口袋优选

shareView.h 929B

123456789101112131415161718192021222324252627282930
  1. //
  2. // shareView.h
  3. // KXYiMa
  4. //
  5. // Created by jcymac on 2018/1/24.
  6. // Copyright © 2018年 jcymac. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger,ShareType){
  10. ShareTypeUrl = 0,
  11. ShareTypeImage = 1,
  12. };
  13. typedef void (^ShareButtonOneBlock) (void);
  14. typedef void (^ShareButtonTwoBlock) (void);
  15. @interface shareView : UIView
  16. @property (weak, nonatomic) IBOutlet UIButton *cancelButton;
  17. @property(nonatomic,copy)ShareButtonOneBlock shareButtonOneBlock;
  18. @property(nonatomic,copy)ShareButtonTwoBlock shareButtonTwoBlock;
  19. @property (weak, nonatomic) IBOutlet UIButton *shareButtonOne;
  20. @property (weak, nonatomic) IBOutlet UIButton *shareButtonTwo;
  21. @property (nonatomic, strong) NSString *imgUrl;
  22. @property(nonatomic)ShareType shareType;
  23. -(void)shareWeChatTitle:(NSString *)title desc:(NSString *)desc imageUrl:(NSString *)imageUrl webUrl:(NSString *)webUrl;
  24. -(void)shareImage:(UIImage *)img;
  25. @end