Google Sign In showing blank screen in iOS

前端 未结 2 741
悲&欢浪女
悲&欢浪女 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:44

    I have the same problem. I use the UIAlertView to confirm user really want to do authorization. It will show the blank screen. If I remove the UIAlertView and show the authorization view directly. It works fine. The problem also show in the Dropbox authorization screen. If you not use UIAlertView , please try to pass the top most controller

    https://github.com/dropbox/dropbox-sdk-obj-c/issues/182

    Hope this can do some help.

    0 讨论(0)
  • 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. :)

    0 讨论(0)
提交回复
热议问题