///#begin zh-cn
/**
*@brief创建分享内容对象,根据以下每个字段适用平台说明来填充参数值
*
*@param content 分享内容(新浪、腾讯、网易、搜狐、豆瓣、人人、开心、有道云笔记、facebook、twitter、邮件、打印、短信、微信、QQ、拷贝)
*@param defaultContent 默认分享内容(新浪、腾讯、网易、搜狐、豆瓣、人人、开心、有道云笔记、facebook、twitter、邮件、打印、短信、微信、QQ、拷贝)
*@param image 分享图片(新浪、腾讯、网易、搜狐、豆瓣、人人、开心、facebook、twitter、邮件、打印、微信、QQ、拷贝)
*@param title 标题(QQ空间、人人、微信、QQ)
*@param url 链接(QQ空间、人人、instapaper、微信、QQ)
*@param description 主体内容(人人)
*@param mediaType 分享类型(QQ、微信)
*
*@return分享内容对象
*/
///#end
///#begin en
/**
*@briefCreate share content object. based on the following description of each field to fill the parameter values
*
*@param content Share content string.(Sina Weibo、Tencent Weibo、NetEase Weibo、Sohu Weibo、Douban、RenRen、KaiXin、YouDaoNote、Facebook、Twitter、Mail、Print、SMS、WeChat、QQ、Copy)
*@param defaultContent Default share content string.(Sina Weibo、Tencent Weibo、NetEase Weibo、Sohu Weibo、Douban、RenRen、KaiXin、YouDaoNote、Facebook、Twitter、Mail、Print、SMS、WeChat、QQ、Copy)
*@param image Image attachment object.(Sina Weibo、Tencent Weibo、NetEase Weibo、Sohu Weibo、Douban、RenRen、KaiXin、Facebook、Twitter、Mail、Print、WeChat、QQ、Copy)
*@param title Title string.(QZone、RenRen、WeChat、QQ)
*@param url Url string.(QZone、RenRen、Instapaper、WeChat、QQ)
*@param description Description string(RenRen)
*@param mediaType MediaType(QQ、WeChat)
*
*@returnShare content object.
*/
///#end
id<ISSContent> publishContent =
[
ShareSDK content:@"分享内容"
defaultContent:@"默认分享内容,没内容时显示"
image:[
ShareSDK imageWithPath:
imagePath]
title: @"北京时尚猫科技有限公司"
url: @"
http://www.shishangmao.cn/"
description:@"这是一条测试信息"
mediaType:
SSPublishContentMediaTypeNews]
;
////********************************************************************************************************************
若想要自定义授权界面可实现如下
//创建容器
id<ISSContainer> container = [ShareSDK container];
[container setIPadContainerWithView:sender arrowDirect:UIPopoverArrowDirectionUp];
//通过viewDelegate:参数修改授权界面的导航栏背景
// id<ISSAuthOptions> authOptions = [ShareSDK authOptionsWithAutoAuth:YES
// allowCallback:YES
// authViewStyle:SSAuthViewStyleFullScreenPopup
// viewDelegate:_appDelegate.viewDelegate
// authManagerViewDelegate:nil];
//powerByHidden:这个参数是去掉授权界面Powered by ShareSDK的标志
id<ISSAuthOptions> authOptions = [ShareSDK authOptionsWithAutoAuth:YES allowCallback:NO
scopes:nil powerByHidden:YES followAccounts:nil authViewStyle:SSAuthViewStyleFullScreenPopup viewDelegate:nil authManagerViewDelegate:nil];
//通过shareViewDelegate:参数修改分享界面的导航栏背景
id<ISSShareOptions> shareOptions = [ShareSDK defaultShareOptionsWithTitle:@"内容分享"
oneKeyShareList:[NSArray defaultOneKeyShareList]
qqButtonHidden:YES
wxSessionButtonHidden:YES
wxTimelineButtonHidden:YES
showKeyboardOnAppear:NO
shareViewDelegate:nil
friendsViewDelegate:nil
picViewerViewDelegate:nil];