分享

1.拖入JohnsonShareSDK 到工程中如图:


分享_第1张图片
image.png

2:


分享_第2张图片
image.png
分享_第3张图片
image.png
分享_第4张图片
image.png

双击红色框框区域

分享_第5张图片
image.png
分享_第6张图片
image.png

分享白名单:

 LSApplicationQueriesSchemes
   
     
     wechat
     weixin
    
    
    sinaweibohd
    sinaweibo
    sinaweibosso
    weibosdk
    weibosdk2.5
    
    
    mqqapi
    mqq
    mqqOpensdkSSoLogin
    mqqconnect
    mqqopensdkdataline
    mqqopensdkgrouptribeshare
    mqqopensdkfriend
    mqqopensdkapi
    mqqopensdkapiV2
    mqqopensdkapiV3
    mqqopensdkapiV4
    mqzoneopensdk
    wtloginmqq
    wtloginmqq2
    mqqwpa
    mqzone
    mqzonev2
    mqzoneshare
    wtloginqzone
    mqzonewx
    mqzoneopensdkapiV2
    mqzoneopensdkapi19
    mqzoneopensdkapi
    mqqbrowser
    mttbrowser
    tim
    timapi
    timopensdkfriend
    timwpa
    timgamebindinggroup
    timapiwallet
    timOpensdkSSoLogin
    wtlogintim
    timopensdkgrouptribeshare
    timopensdkapiV4
    timgamebindinggroup
    timopensdkdataline
    wtlogintimV1
    timapiV1
    
    
    alipay
    alipayshare
    
    
    dingtalk
    dingtalk-open
    
    
    linkedin
    linkedin-sdk2
    linkedin-sdk
    
    
    laiwangsso
    
    
    yixin
    yixinopenapi
    
    
    instagram
    
    
    whatsapp
    
    
    line
    
    
    fbapi
    fb-messenger-api
    fbauth2
    fbshareextension
    
    
    
    
    kakaofa63a0b2356e923f3edd6512d531f546
    kakaokompassauth
    storykompassauth
    kakaolink
    kakaotalk-4.5.0
    kakaostory-2.9.0
    
    
    pinterestsdk.v1
    
    
    tumblr
    
    
    evernote
    en
    enx
    evernotecid
    evernotemsg
    
    
    youdaonote
    ynotedictfav
    com.youdao.note.todayViewNote
    ynotesharesdk
    
    
    gplus
    
    
    pocket
    readitlater
    pocket-oauth-v1
    fb131450656879143
    en-readitlater-5776
    com.ideashower.ReadItLaterPro3
    com.ideashower.ReadItLaterPro
    com.ideashower.ReadItLaterProAlpha
    com.ideashower.ReadItLaterProEnterprise
    
    
    vk
    vk-share
    vkauthorize

代码

  #import "AppDelegate.h"
  #import "JohnsonUMShare.h"

  #define USHARE_DEMO_APPKEY @"598c38e58f4a9d23570019a2"//你在友盟的key

  @interface AppDelegate ()

 @end

 @implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[JohnsonUMShare setUmSocialAppkey:USHARE_DEMO_APPKEY];
[[JohnsonUMShare defaultManager]jx_setWxPlaformWithappKey:@"wxc4a83aa5fbc5fb8b" appSecret:@"6f41882819f809876bb7cc2ab1160fBE" redirectURL:nil];
return YES;
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{

BOOL result = [[JohnsonUMShare defaultManager]jx_handleOpenURL:url];
if (result) {
    
    //成功的处理
}
return result;
}
分享_第7张图片
image.png

你可能感兴趣的:(分享)