<p style="line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">#import </span><ShareSDK/ShareSDK.h></p><p style="line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">#import </span>"WXApi.h"</p><p style="line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">#import </span><TencentOpenAPI/QQApi.h></p><p style="line-height: normal; font-family: Menlo;">- (<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">IBAction</span>)docShare:(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">id</span>)sender {</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSArray</span> *shareList = [<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareSDK</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">getShareListWithType</span>:</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">ShareTypeWeixiSession</span>,</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">ShareTypeWeixiTimeline</span>,</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">ShareTypeQQ</span>,</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>];</p><p style="line-height: normal; font-family: Menlo; min-height: 16px;"> </p><p style="line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>//<span style="font-family: 'Heiti SC Light';">定义容器</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">id</span><<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ISSContainer</span>> container = [<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareSDK</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">container</span>];</p><p style="line-height: normal; font-family: Menlo; color: rgb(120, 73, 42);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">if</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> (</span>UI_USER_INTERFACE_IDIOM<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">() == </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">UIUserInterfaceIdiomPad</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">)</span></p><p style="line-height: normal; font-family: Menlo;"> {</p><p style="line-height: normal; font-family: Menlo;"> [container <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">setIPadContainerWithView</span>:sender</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">arrowDirect</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">UIPopoverArrowDirectionUp</span>];</p><p style="line-height: normal; font-family: Menlo;"> }</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">else</span></p><p style="line-height: normal; font-family: Menlo;"> {</p><p style="line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> [container </span>setIPhoneContainerWithViewController<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">self</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">];</span></p><p style="line-height: normal; font-family: Menlo;"> }</p><p style="line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>//<span style="font-family: 'Heiti SC Light';">定义分享内容</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">id</span><<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ISSContent</span>> publishContent = <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>;</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSString</span> *contentString =<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">contentShare</span>;</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSString</span> *titleString = <span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">titleShare</span>;</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSString</span> *urlString = <span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">urlShare</span>;</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSString</span> *description = <span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">summaryShare</span>;</p><p style="line-height: normal; font-family: Menlo; color: rgb(61, 29, 129);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSString</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> *imagePath = [[</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSBundle</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>mainBundle<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">] </span>pathForResource<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"Icon@2x"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>ofType<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"png"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">];</span></p><p style="line-height: normal; font-family: Menlo;"> publishContent = [<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareSDK</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">content</span>:contentString</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">defaultContent</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@""</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">image</span>:[<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareSDK</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">imageWithPath</span>:imagePath]</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">title</span>:titleString</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">url</span>:urlString</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">description</span>:description</p><p style="line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>mediaType<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:</span>SSPublishContentMediaTypeNews<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">];</span></p><p style="line-height: normal; font-family: Menlo; min-height: 16px;"> <span style="color: rgb(0, 132, 0);">//</span><span style="color: rgb(0, 132, 0); font-family: 'Heiti SC Light';">定义分享设置</span></p><p style="line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">id</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"><</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ISSShareOptions</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">> shareOptions = [</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareSDK</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>simpleShareOptionsWithTitle<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">分享内容</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>shareViewDelegate<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">];</span></p><p style="line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> [</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareSDK</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span>showShareActionSheet<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);">:container</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">shareList</span>:shareList</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">content</span>:publishContent</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">statusBarTips</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">NO</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">authOptions</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">shareOptions</span>:shareOptions</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">result</span>:^(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ShareType</span> type, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">SSResponseState</span> state, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">id</span><<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ISSPlatformShareInfo</span>> statusInfo, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">id</span><<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">ICMErrorInfo</span>> error, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">BOOL</span> end) {<span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">//</span><span style="font-family: 'Heiti SC Light'; color: rgb(0, 132, 0);">返回事件</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">if</span> (state == <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">SSPublishContentStateSuccess</span>)</p><p style="line-height: normal; font-family: Menlo;"> {</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">NSLog</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">NSLocalizedString</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"TEXT_SHARE_SUC"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">分享成功</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">!"</span>));</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIAlertView</span> *alert = [[<span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIAlertView</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">alloc</span>] <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">initWithTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">提示</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">message</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">分享成功</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">delegate</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">self</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">cancelButtonTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"OK"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">otherButtonTitles</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>,<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>];</p><p style="line-height: normal; font-family: Menlo;"> [alert <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">show</span>];</p><p style="line-height: normal; font-family: Menlo;"> }</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">else</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">if</span> (state == <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">SSPublishContentStateFail</span>)</p><p style="line-height: normal; font-family: Menlo;"> {</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">if</span> (type==<span style="font-variant-ligatures: no-common-ligatures; color: rgb(39, 42, 216);">24</span>&&![<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">QQApi</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">isQQInstalled</span>]) {</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">//</span><span style="font-family: 'Heiti SC Light'; color: rgb(0, 132, 0);">分享到</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">QQ</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">//</span><span style="font-family: 'Heiti SC Light'; color: rgb(0, 132, 0);">没有安装</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">qq</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">NSLog</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">NSLocalizedString</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"TEXT_SHARE_FAI"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">没有安装</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">QQ!"</span>), [error <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">errorCode</span>], [error <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">errorDescription</span>]);</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIAlertView</span> *alert = [[<span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIAlertView</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">alloc</span>] <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">initWithTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">提示</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">message</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">没有安装</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">QQ"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">delegate</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">self</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">cancelButtonTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"OK"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">otherButtonTitles</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>,<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>];</p><p style="line-height: normal; font-family: Menlo;"> [alert <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">show</span>];</p><p style="line-height: normal; font-family: Menlo;"> }<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">else</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">if</span> ((type==<span style="font-variant-ligatures: no-common-ligatures; color: rgb(39, 42, 216);">22</span>||type==<span style="font-variant-ligatures: no-common-ligatures; color: rgb(39, 42, 216);">23</span>)&&![<span style="font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);">WXApi</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">isWXAppInstalled</span>]) {</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">//</span><span style="font-family: 'Heiti SC Light'; color: rgb(0, 132, 0);">没有安装</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 132, 0);">qq || </span><span style="font-family: 'Heiti SC Light'; color: rgb(0, 132, 0);">没有安装微信</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">NSLog</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">NSLocalizedString</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"TEXT_SHARE_FAI"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">没有安装微信</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">!"</span>), [error <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">errorCode</span>], [error <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">errorDescription</span>]);</p><p><span style="font-family: Menlo; line-height: normal;"> </span><span style="font-family: Menlo; color: rgb(112, 61, 170);">UIAlertView</span><span style="font-family: Menlo; line-height: normal;"> *alert = [[</span><span style="font-family: Menlo; color: rgb(112, 61, 170);">UIAlertView</span><span style="font-family: Menlo; line-height: normal;"> </span><span style="font-family: Menlo; color: rgb(61, 29, 129);">alloc</span><span style="font-family: Menlo; line-height: normal;">] </span><span style="font-family: Menlo; color: rgb(61, 29, 129);">initWithTitle</span><span style="font-family: Menlo; line-height: normal;">:</span><span style="font-family: Menlo; color: rgb(209, 47, 27);">@"</span><span style="line-height: normal; font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">提示</span><span style="font-family: Menlo; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">message</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">没有安装微信</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">delegate</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">self</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">cancelButtonTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"OK"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">otherButtonTitles</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>,<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>];</p><p style="line-height: normal; font-family: Menlo;"> [alert <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">show</span>];</p><p style="line-height: normal; font-family: Menlo;"> }<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">else</span> { </p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">NSLog</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">NSLocalizedString</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"TEXT_SHARE_FAI"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">分享失败</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">!"</span>), [error <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">errorCode</span>], [error <span style="font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);">errorDescription</span>]);</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">NSLog</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(120, 73, 42);">NSLocalizedString</span>(<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"TEXT_SHARE_SUC"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">分享成功</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">!"</span>));</p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIAlertView</span> *alert = [[<span style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIAlertView</span> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">alloc</span>] <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">initWithTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">提示</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">message</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"</span><span style="font-family: 'Heiti SC Light'; color: rgb(209, 47, 27);">分享失败</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">delegate</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">self</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">cancelButtonTitle</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);">@"OK"</span></p><p style="line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">otherButtonTitles</span>:<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>,<span style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">nil</span>];</p><p style="line-height: normal; font-family: Menlo;"> [alert <span style="font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);">show</span>];</p><p style="line-height: normal; font-family: Menlo;"> }</p><p style="line-height: normal; font-family: Menlo;"> }</p><p style="line-height: normal; font-family: Menlo;"> }];</p><p style="line-height: normal; font-family: Menlo;">}</p><p> </p>