正确样式
[[UMSocialControllerService defaultControllerService] setShareText:@"分享内嵌文字" shareImage:[UIImage imageNamed:@"icon"] socialUIDelegate:self]; //设置分享内容和回调对象
[UMSocialSnsPlatformManager getSocialPlatformWithName:UMShareToSina].snsClickHandler(self,[UMSocialControllerService defaultControllerService],YES);
错误样式
UIViewController *viewcon = GNAppDelegate.rootNavigationController;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[keySharedStr] content:titleStr image:shareImage location:nil urlResource:nil presentedController:viewcon completion:^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) {
NSLog(@"分享成功!");
}
}];