美文网首页
友盟集成调用分享面板无法弹出

友盟集成调用分享面板无法弹出

作者: 没毛毛的大腿 | 来源:发表于2017-06-16 17:01 被阅读0次

1.头文件导入为:#import<UShareUI/UShareUI.h>

2.回调改为:

[UMSocialUIManager showShareMenuViewInWindowWithPlatformSelectionBlock:^(UMSocialPlatformType platformType,NSDictionary*userInfo) {

}];

3.如使用空模板创建的工程,即:

self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]];

UINavigationController *navi = [[UINavigationController alloc]initWithRootViewController:[[RootViewController alloc]init]];

self.window.rootViewController = navi;

[self.window makeKeyAndVisible];

则找到Info.plist文件,删除Main storyboard file base name该选项,如果移除了Main.storyboard(就是:Main storyboard file base name),需要clean工程后再重新运行。clean在屏幕左上角的Product里.

相关文章

网友评论

      本文标题:友盟集成调用分享面板无法弹出

      本文链接:https://www.haomeiwen.com/subject/fijmqxtx.html