iOS 友盟微信登录缓存问题
青欢 2016-02-03 02:47:02 公司的程序使用友盟微信登录,但是每次登录的时候显示的昵称都是以前的昵称,即使改了昵称也无法显示最新昵称,为什么呢?这是友盟的缓存问题吗?
UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager getSocialPlatformWithName:UMShareToWechatSession];
snsPlatform.loginClickHandler(self,[UMSocialControllerService defaultControllerService],YES,^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) {
UMSocialAccountEntity *snsAccount = [[UMSocialAccountManager socialAccountDictionary] valueForKey:UMShareToWechatSession];
NSLog(@"昵称是%@",snsAccount.userName);
}
});