//
//  ShareContentView.m
//  ALand
//
//  Created by Z on 16/4/27.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "ShareContentView.h"
#import "UMSocial.h"
@implementation ShareContentView



- (IBAction)shareToWeiChatSession:(id)sender {
    [UMSocialData defaultData].extConfig.wechatSessionData.url = self.url;
    [UMSocialData defaultData].extConfig.wechatSessionData.title = self.title;
    [[UMSocialDataService defaultDataService]  postSNSWithTypes:@[UMShareToWechatSession] content:self.content image:[UIImage imageNamed:@"add_commodityIcon0"] location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){
        if (response.responseCode == UMSResponseCodeSuccess) {
            NSLog(@"分享成功！");
        }
    }];

}
- (IBAction)shareToWeiChatTimeLine:(id)sender {
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
