iOS Swift - 谷歌登录后无法访问SWRevealViewController

时间:2016-08-18 05:20:39

标签: ios swift swrevealviewcontroller

通过谷歌成功登录后,我似乎无法访问SWRevealViewController。图标和动画在那里,但点击它不会打开菜单。我不确定是否必须转到ViewController(图片中的代码)并推送显示SWRevealViewController或不显示swift。我是var cards = [0, 1, 2, 9, 10] // Get a list of all the aces in the array. let aces = cards.filter { $0 == 1 || $0 == 11 } // Now take the aces out of the array. cards = cards.filter { $0 != 1 && $0 != 11 } // Sort the array (unnecessary if its definitely already sorted). cards = cards.sort() // Re-insert the aces into the middle. aces.forEach { cards.insert($0, atIndex: cards.count/2) } // [0, 2, 1, 9, 10] 的新手。请帮忙!

App Delegate GIDSigin Function

1 个答案:

答案 0 :(得分:1)

问题出在你登录后,你改变了窗口的rootViewController。而且我没有看到你在任何地方实例化SWRevealController。应该有SWRevealController作为窗口的rootView控制器。