123456789101112131415161718192021222324252627282930 |
- //
- // shareView.h
- // KXYiMa
- //
- // Created by jcymac on 2018/1/24.
- // Copyright © 2018年 jcymac. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger,ShareType){
- ShareTypeUrl = 0,
- ShareTypeImage = 1,
- };
- typedef void (^ShareButtonOneBlock) (void);
- typedef void (^ShareButtonTwoBlock) (void);
- @interface shareView : UIView
- @property (weak, nonatomic) IBOutlet UIButton *cancelButton;
- @property(nonatomic,copy)ShareButtonOneBlock shareButtonOneBlock;
- @property(nonatomic,copy)ShareButtonTwoBlock shareButtonTwoBlock;
- @property (weak, nonatomic) IBOutlet UIButton *shareButtonOne;
- @property (weak, nonatomic) IBOutlet UIButton *shareButtonTwo;
- @property (nonatomic, strong) NSString *imgUrl;
- @property(nonatomic)ShareType shareType;
- -(void)shareWeChatTitle:(NSString *)title desc:(NSString *)desc imageUrl:(NSString *)imageUrl webUrl:(NSString *)webUrl;
- -(void)shareImage:(UIImage *)img;
- @end
|