1.頭文件導(dǎo)入為:#import<UShareUI/UShareUI.h>
2.回調(diào)改為:
[UMSocialUIManager showShareMenuViewInWindowWithPlatformSelectionBlock:^(UMSocialPlatformType platformType,NSDictionary*userInfo) {
}];
3.如使用空模板創(chuàng)建的工程,即:
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該選項(xiàng),如果移除了Main.storyboard(就是:Main storyboard file base name),需要clean工程后再重新運(yùn)行。clean在屏幕左上角的Product里.