iOS开发怎么样做第三方登陆(友盟社会化分享)

基于前一篇文章   自定义UI后

实现如下代码   即可

 //第三方登陆

    //    UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager getSocialPlatformWithName:UMShareToWechatSession];

    //

    //    snsPlatform.loginClickHandler(self,[UMSocialControllerService defaultControllerService],YES,^(UMSocialResponseEntity *response){

    //

    //        if (response.responseCode == UMSResponseCodeSuccess) {

    //

    //            UMSocialAccountEntity *snsAccount = [[UMSocialAccountManager socialAccountDictionary]valueForKey:UMShareToWechatSession];

    //

    ////            NSLog(@"username is %@, uid is %@, token is %@ url is %@",snsAccount.userName,snsAccount.usid,snsAccount.accessToken,snsAccount.iconURL);

    //

    //            NSLog(@"%@",snsAccount);

    //

    //        }

    //        

    //    });

posted @ 2016-03-24 11:29  sujianbo  阅读(216)  评论(0编辑  收藏  举报