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里.
网友评论