Skip to content

Instantly share code, notes, and snippets.

@smartweb
Created November 25, 2015 03:18
Show Gist options
  • Save smartweb/7fbec0208cd1c18cb367 to your computer and use it in GitHub Desktop.
Save smartweb/7fbec0208cd1c18cb367 to your computer and use it in GitHub Desktop.
友盟ShareSDK第三方登录
UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager getSocialPlatformWithName:platformName];
snsPlatform.loginClickHandler(self,
[UMSocialControllerService defaultControllerService],
YES,
^(UMSocialResponseEntity *response){
//code
});
@chunlea
Copy link

chunlea commented Nov 25, 2015

试一下这个:

snsPlatform.loginClickHandler.call(self, UMSocialControllerService.defaultControllerService(), true,  lambda do |response|
    # code
end)

@smartweb
Copy link
Author

typedef void (^UMSocialSnsPlatformLoginHandler)(UIViewController *presentingController, UMSocialControllerService * socialControllerService, BOOL isPresentInController, UMSocialDataServiceCompletion completion);

// Handler的定义

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment