Google Sign In showing blank screen in iOS

前端 未结 2 740
悲&欢浪女
悲&欢浪女 2021-01-28 18:08

I have implemented code as per the google SDK documentation line by line in my app, but still when I click on google sign in button app shifts to new view controller with webvie

2条回答
  •  臣服心动
    2021-01-28 18:48

    Finally after so many days found the problem. I was showing splash view from my appDelegate using refrence of UIWindow which was adding and removing an imgview as subview to the window. So it was somehow messing with the UINavigation's stack and my view controller was not getting any reference to the UINavigationController. After removing that code it's working just fine. Also came to the solution that, if I want to show splash screen, as I can't use UIWindow's reference, I have to add new VC and write my all navigation code there. @TedYu Thank you very much for the help. :)

提交回复
热议问题