feat: 优化分享功能和剪贴板管理
- 修改gameController分享逻辑,支持不同分享类型 - 新增PasteboardManager类,优化iOS 14+剪贴板访问 - 减少剪贴板权限弹窗,提升用户体验
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#import "QiniuManager.h"
|
||||
#import "QiniuConfig.h"
|
||||
#import "SharePanel.h"
|
||||
#import "WechatShareManager.h"
|
||||
|
||||
@interface gameController ()
|
||||
<WKNavigationDelegate,WXApiManagerDelegate,VoiceRecorderBaseVCDelegate,AVAudioPlayerDelegate,ASIHTTPRequestDelegate,AMapLocationManagerDelegate,UIActionSheetDelegate,AgoraRtcEngineDelegate>
|
||||
@@ -581,11 +582,19 @@
|
||||
enum WXScene currentScene;
|
||||
int friend = [one intValue];
|
||||
// ======测试分享面板
|
||||
|
||||
// 显示分享面板
|
||||
[SharePanel showWithDictionary:data completion:^(ShareType type, BOOL success) {
|
||||
// 处理分享结果
|
||||
}];
|
||||
if(friend ==1){
|
||||
// 显示分享面板
|
||||
[SharePanel showWithDictionary:data completion:^(ShareType type, BOOL success) {
|
||||
// 处理分享结果
|
||||
}];
|
||||
|
||||
}else{
|
||||
// 使用WechatShareManager处理微信分享
|
||||
[WechatShareManager shareWithContent:data
|
||||
completion:^(BOOL success) {
|
||||
|
||||
}];
|
||||
}
|
||||
return;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user