ios开发sharedsdk分享到微信代码怎么写

2025年05月06日 22:54
有1个网友回答
网友(1):

/**
* 微信好友
*/
//SSDKPlatformSubTypeWechatSession
/**
* 微信朋友圈
*/
//SSDKPlatformSubTypeWechatTimeline

SSDKPlatformType platform = SSDKPlatformSubTypeWechatSession;

[ShareSDK shareWithContentName:@"这是一个分享消息" platform:platform customFields:nil onStateChanged:^(SSDKResponseState state, NSDictionary *userData, SSDKContentEntity *contentEntity, NSError *error) {
NSLog(error?@"分享失败":@"分享成功");
}];