友盟分享面板无法弹出--为自己的愚蠢买单
由于 1. 创建Xcode项目会默认添加Main.storyboard
作为Main Interface
(General - Deployment Info),也就是项目的主Window。 2. 如果没使用Main.storyboard而又另外在AppDelegate中创建了UIWindow对象,如
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]
如果项目中同时出现Main Interface
以及代码创建UIWindow
会导致分享面板无法正常弹出,解决方法是移除其一即可。如果移除了Main.storyboard
,需要clean工程后再重新运行。
posted on 2017-09-04 14:56 liangyi_335905187 阅读(166) 评论(0) 编辑 收藏 举报