How to customize GIDSignInButton login Image in new Google+ iOS SDK?

Vineeth Joseph picture Vineeth Joseph · Jun 4, 2015 · Viewed 9.2k times · Source

In order to connect to google plus in my iOS app i'm using GIDSignInButton from latest Google Plus SDK for iOS.

I want to use my own image and label for login button. The problem is I don't see anywhere how to customize it. I am able to do it in previous SDK versions.

Any solutions????

Answer

Steve picture Steve · Jun 5, 2015

It's not possible to customize the sign in button the same way it was in the older SDKs. The older SDKs contained an image you could replace. The new SDK does not.

Having said that, you do not have to use a GIDSignInButton to sign in the user. If you want to use a custom image, just use a custom UIButton and call [[GIDSignIn sharedInstance] signIn] on touch.