我目前正在开发 Storyboard应用程序。我有3个文件。 appdelegate,登录 View 和注册 View 。
在登录 View 中,我有一个按钮 FB 登录和注册按钮。在注册按钮上,我正在插入注册 View 。运行良好。
我正在 registerFB 上调用 getfbinfo()
。 getfbinfo()
位于 appdelegate 中。当我获得用户 FB 信息后,我想推送到注册 View 。我尝试从登录 View 调用注册按钮功能,但它崩溃了。我看过一些链接。但我找不到解决方案。
有人可以帮助我吗?
最佳答案
在 Storyboard中,为您的segue(从按钮到 View Controller )提供一个标识符。 然后(假设您在应用程序委托(delegate)中有对登录 View Controller 的正确引用)调用
[loginViewController performSegueWithIdentifier:@"your_storyboard_identifier" sender:nil]
FB登录完成后。
关于uistoryboard - 从第三种观点继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23624535/