objective c - How to remove GPPSignInButton's default style (text, G+ image) to add your own in iOS -
we're using ggpsigninbutton log goopleplus service. want have custom , feel button, couldn't find way turn off text , image show button automatically when tell uibutton of kind gppsigninbutton. here's how looks when add own design inside otherwise empty button gppsigninbutton:
the way i've been able make disappear pretty patchy: (first wire button iboutlet called gplusbutton) [self.gplusbutton.subviews[0] removefromsuperview];
i tried using own button, , when pressed calling manually [[gppsignin sharedinstance] authenticate]
method seems result in incorrect login (for example, login token isn't saved key chain google+ later uses silently authenticate me).
does know of better way design own style button? btw appears supported web sign in buttons.
just don't use gppsigninbutton! idea of calling authenticate directly correct - make sure configuring shared instance (including delegate , on) before calling authenticate.
Comments
Post a Comment