Google Sign In Button Not Connecting To Google Button Outlet Objective C [Pod Installation]

866 views Asked by At

I have followed all procedure same as given in developer google for Google sign in but at the last when they said to connect the outlets, unfortunately, I am unable to do so, please guide me.

5

There are 5 answers

0
Sucharu Hasija On

please change its class first in the button settings from the UIButton to GIDSignInButton -> like here

2
Ketan Parmar On

comment that outlet and start toctrl+drag from that button to that class. from popup give outlet name what you want (exa: singninButton) and press connect. and make sure in assistant editor there is a class opened that you have set to that viewcontroller. hope this will help :)

2
iVarun On

You should have to set Custom class of UIButton

  • Click on UIButton
  • Click on show identity inspector
  • Set Custom Class to GIDSignInButton See image
0
Simeryn Denis On

I downloaded this demo from GitHub, and I noticed that GIDSignInButton is not a UIButton but a UIView. So you may consider using UIView instead of UIButton.

0
Muhammad Ali On

In the action of your UIButton call

GIDSignIn.sharedInstance().signOut()

GIDSignIn.sharedInstance().signIn()

and it will behave exactly like a GIDSignInButton!