Is there a way to get the Facebook login button to display “Sign in” rather than “Sign in to Facebook”? The following shows how it looks on the iPhone 6
And lower on the iPhone 6 Plus
I briefly reviewed the Facebook SDK on Github and couldn't find a solution. Facebook basically looks at the width of the button and then displays the corresponding text. I don’t want the text to overflow like on the iPhone 6 Plus.
Actually a very simple way to customize the text of FBSDKLoginButton. Here you are:
var fbButton = FBSDKLoginButton() var titleText = NSAttributedString(string: "Your new button title") fbButton.setAttributedTitle(titleText, forState: UIControlState.Normal)
In Facebook docs:
Facebook string localizationSDK FacebookSDK.strings, , Apple. .
Facebook string localization
SDK FacebookSDK.strings, , Apple. .
FacebookSDK.strings, Facebook sdk, . : LoginButton.LogInLong - Log in with Facebook, , .
LoginButton.LogInLong
Log in with Facebook
Source: https://habr.com/ru/post/1598339/More articles:Default WiceGrid filter by column - ruby-on-railsКак экспортировать миллионы строк из MySQL в CSV через PHP без исчерпания памяти? - phpVisual Studio Team Services says "PowerShell Error", although it is not - gitJava SSO windows AD spring4 - Invalid header header: - javaShift (update) unique column values in PostgreSQL - sql-updateДвоичная трехмерная нечеткая матрица в matlab - algorithmI get this error ORA-00907: missing right bracket - sqlSymfony 2: how to send an email using Swiftmailer - phpjava.lang.VerifyError creates a gradle task with kotlin - javapython opencv cv2.cv.CV_CAP_PROP_FRAME_COUNT get invalid numbers - pythonAll Articles