IOS: Sign in with a Google Button

I am new to development iOSand working on a project in which I want my users to log in using Google.

I worked through the Google documentation and was able to log in. All I wanted was a button / image that says “Log in to Google” as
enter image description here
I looked at the Google SDK, but there is no exact image. so I tried to create my own that looks like

enter image description here
where ImageViewis replaced by the image in the Google SDK.

Problem
When I run this, it doesn't look like

enter image description here

The red color of the image and the buttons do not match, and I do not see the vertical black line.


a.) " Google" iOS?
b.) png , @1x @2x

, , ?

UPDATE
- , GooglePlus.bundle . ,

enter image description here

- ?

+4
1

, , , , , SSO Google+ .

GPPSignIn *signIn = [GPPSignIn sharedInstance];
signIn.shouldFetchGooglePlusUser = YES;

//signIn.shouldFetchGoogleUserEmail = YES;  // Uncomment to get the user email

// You previously set kClientId in the "Initialize the Google+ client" step

signIn.clientID = kClientId;

// Uncomment one of these two statements for the scope you chose in the previous step
signIn.scopes = @[ kGTLAuthScopePlusLogin ];  // "https://www.googleapis.com/auth/plus.login" scope
//signIn.scopes = @[ @"profile" ];            // "profile" scope

// Optional: declare signIn.actions, see "app activities"
signIn.delegate = self;

signIn , . ,

https://developers.google.com/+/mobile/ios/sign-in

+1

Source: https://habr.com/ru/post/1546557/


All Articles