Custom Google Sign-In button - iOS

后端 未结 10 2508
别那么骄傲
别那么骄傲 2020-12-24 01:19

I want to customize Google Sign-In button like below:-

I have tried below links, but none of them helped really much:- How to customize google sign in button?
ht

10条回答
  •  感动是毒
    2020-12-24 02:08

    All are fine with the answer of @Rohit KP (https://stackoverflow.com/a/34368678/2905967)

    But Little adding when assigning the delegates.

    Please call your action like this:

    - (IBAction)btnGooglePlusPressed:(id)sender
    {
        [GIDSignIn sharedInstance].delegate=self;
        [GIDSignIn sharedInstance].uiDelegate=self;
        [[GIDSignIn sharedInstance] signIn];
    }
    

    and add these delegates GIDSignInDelegate,GIDSignInUIDelegate

提交回复
热议问题