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

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里.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容