码迷,mamicode.com
首页 > 移动开发 > 详细

友盟分享在appdelegate中的调用语句举例

时间:2015-07-27 10:42:30      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

//友盟

    [UMSocialData setAppKey:kUmengAppkey];

    [UMSocialConfig setSupportedInterfaceOrientations:UIInterfaceOrientationMaskPortrait];

 

    //wechat

    [UMSocialWechatHandler setWXAppId:kWeChatAPPId appSecret:kWeChatSecretKey url:kWeChatRedirectURL];

    

    //qq

    [UMSocialQQHandler setQQWithAppId:kQQAppId appKey:kQQAppKey url:kQQRedirectURL];

 

在pch文件中如下定义

//umeng

#define kUmengAppkey @"55652d8567e58ea67***3d11"

 

//wechat

#define kWeChatAPPId @"wx78fd9db6e535b***"

#define kWeChatSecretKey @"927*afd064a653c53344c601a461cf22"

#define kWeChatRedirectURL @""

 

//weibo

#define kWeiboAppKey @"1587215***"

#define kWeiboSecretKey @"32ce36858**94459b46fb3173063ec52"

#define kWeiboRedirectURI @"https://api.weibo.com/oauth2/default.html"

 

//QQ

#define kQQAppId @"1133189***"

#define kQQAppKey @"FefQ91y*3jiijERS"

#define kQQRedirectURL @""

友盟分享在appdelegate中的调用语句举例

标签:

原文地址:http://www.cnblogs.com/isItOk/p/4679400.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!