Google OAuth2 库与 Storyboard IOS 存在问题

发布于 2025-01-04 00:38:28 字数 286 浏览 6 评论 0原文

我面临着尝试为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光瘦了 2025-01-11 00:38:28

我不知道这是否有帮助,但我最近使用 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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文