32 lines
867 B
Objective-C
32 lines
867 B
Objective-C
//
|
|
// XCShareView.h
|
|
// XCRoomMoudle
|
|
//
|
|
// Created by KevinWang on 2018/9/2.
|
|
// Copyright © 2018年 YiZhuan. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "XPShareItem.h"
|
|
#import "XPShareInfoModel.h"
|
|
|
|
@class XPShareView;
|
|
@protocol XCShareViewDelegate <NSObject>
|
|
///点了取消分享
|
|
- (void)shareViewDidClickCancel:(XPShareView *)shareView;
|
|
///分享成功
|
|
- (void)shareView:(XPShareView *)shareView didSuccess:(XPShareInfoModel *)shareInfo;
|
|
///分享失败
|
|
- (void)shareView:(XPShareView *)shareView shareFail:(NSString *)message;
|
|
@end;
|
|
|
|
@interface XPShareView : UIView
|
|
|
|
@property (nonatomic, weak) id<XCShareViewDelegate> delegate;
|
|
@property (nonatomic,assign) BOOL isFromWebVeiw;
|
|
|
|
|
|
- (instancetype)initWithItems:(NSArray<XPShareItem *> *)items itemSize:(CGSize)itemSize shareInfo:(XPShareInfoModel *)shareInfo;
|
|
|
|
@end
|