Using Google+ SignIn for iOS SDK v1.4.1, I have a button of class GPPSignInButton
placed in a view in a storyboard. It is connected to a GPPSignInButton
outlet. GooglePlus.bundle
has been added to the project and is copied into the app bundle and can be loaded (programmatically) from within the app at runtime.
When I run the app, either on a device or in the simulator, the button is blue.
I would expect it show a red Sign-in with Google+ button. Creating the button programmatically results in a button that displays correctly. Inspecting the subviews of button instantiated via the storyboard and those of the programmatically created button shows that the storyboard button is missing a UIImageView
instance.
The -ObjC
linker flag is set. I've even tried adding -all_load
with no effect.
I suspect there is a bug in GPPSignInButton
's initWithCoder:
. Can anyone confirm or reproduce this?
The solution was to set the button type to Custom
—a step missing from the Google documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With