Google OAuth2 库与 Storyboard IOS 存在问题
我面临着尝试为 GTMOAuth2ViewControllerTouch 进行 initWithScope 并尝试使用 PresentModalViewController 将其推出的问题。
我的项目启用了故事板。
当我尝试推送时,会出现 SIGBRT 错误。看来 initWithScope 与 PresentModal 视图的结合不太好。
但是,我确实尝试了 init:nil bundle:nil 这实际上有效,但没有显示任何内容,因为参数不是我提供给控制器的。
任何人都可以请建议。
I am facing this issue of trying to initWithScope for the GTMOAuth2ViewControllerTouch and trying to push it out using PresentModalViewController.
My project have StoryBoard enable.
When i try to push i will have a SIGBRT error. It seems that the initWithScope doesnt gel very well with the PresentModal View.
However, I did try to init:nil bundle:nil this actually works but shows nothing as the parameters was not provider by me to the Controller.
Can anyone please advice.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否有帮助,但我最近使用 XCode 4.2 和 iOS 5.0 SDK 在简单视图上使用故事板的第一个版本的 GTMOAuthViewControllerTouch(无 OAuth 2)遇到了同样的问题,甚至更改了对presentModalViewController的调用:推送这个 GTMOAuthViewControllerTouch 并查看我的网站 OAuth 服务的登录页面,但没有成功,直到我意识到谷歌代码依赖于导航控制器,所以我将视图嵌入到导航控制器中并且它工作完美:)
I don't know if it would be helpful but I have the same problem recently with the GTMOAuthViewControllerTouch of the first version (no OAuth 2) using XCode 4.2 and iOS 5.0 SDK with storyboards on a simple view, changing even the call to presentModalViewController: to push this GTMOAuthViewControllerTouch and see the login page of my website OAuth service with out any success until I realize that the google code depends on the navigation controller, so I embedded my view inside a Navigation Controller and it work flawlessly :)