So I'm using Facebook's FBSDKLoginButton to create a button that will authenticate the user with Facebook. However, it seems by default the button has an animation on it that fades in the text. This looks great and all, but my other buttons don't have this effect, so there's a discrepancy there. Any way to remove this fade in (or replicate it on my other buttons with the exact timing and style as the fb button)?
If you want you own interface effects and styling instead of the drag and drop vanilla Button supplied by FB I suggest you use FBSDKLoginManager instead of FBSDKLoginButton so you call the API yourself to perform login or additional authorisations with your own UI.
You can find more details here: https://developers.facebook.com/docs/facebook-login/ios/v2.3
Edit: If I have time over the weekend I'll update this answer with how this will looking in code. Fri - 5/JUN/15
Related
My app integrates with Stripe for payment purpose, but I have an issue on IOS... People can't pay.
The payment button is hovered over by the keyboard, and there is no button to close it like there is on Android.
I can't succeed into making the popup scroll either.
I'm using custom integration and didn't find anything to help me... Other than making everything from scratch with a custom modal and custom form. And I really don't want to do that.
You can see the tiny top line of the blue button under the keyboard... That's what we want to click !
Install cordova keyboard plugin and in you app.component.ts add this:
this.platform.ready().then(() => {
...
this.keyboard.hideFormAccessoryBar(false); // Hide the keyboard accessory bar with the next, previous and done buttons.
...
});
Then when the keyboard show up you will have a nice "Done" option to close it.
This should help your customer to finalize payment.
Is that in a webview? Stripe doesn't always work the way you'd expect in a webview. You might need to build your form with Elements rather than Checkout.
We're using the GGPSignInButton to log into GooplePlus service.
we want to have a custom look and feel for the button, but I couldn't find a way to turn off the text and image that show up with the button automatically when I tell a UIButton he is of a kind GPPSignInButton. Here's how it looks when I add my own design inside an otherwise empty button which is GPPSignInButton:
The only way I've been able to make it disappear is pretty patchy:
(First wire up the button to a IBOutlet called gPlusButton)
[self.gPlusButton.subviews[0] removeFromSuperview];
I also tried using my own button, and when pressed calling manually to
[[GPPSignIn sharedInstance] authenticate]
method seems to result in an incorrect login (for example, the login token isn't saved into the key chain Google+ later uses to silently authenticate me).
Does anyone know of a better way to design my own style for the button?
BTW it appears this is supported for web sign in buttons.
Just don't use the GPPSignInButton! Your idea of calling authenticate directly is correct - just make sure you are configuring the shared instance (including the delegate and so on) before calling authenticate.
After implementing Facebook login with success in iOS, I need now to call the loginUI only when the user click on the login button. I do not know the right place in my code to call the openSessionWithAllowLoginUI method. I have placed it at viewDidLoad, but it calls the loginUI without user click and don't want this. Anyone?
After trying many possible solutions to handle the login button, I found the better way to do this. Had implemented my own button with the same appearance of the original button and attached the action.
In my iOS app's Settings screen, there is one setting which is quite fundamental. I wish to inform users about this with a UIAlertView.
Preferably I would display this when the back button is pressed (and thus they are finished editing their settings). However, is this possible, or even allowed by Apple? If so, how?
My second choice would be to show the UIAlertView as soon as the setting is changed, but if this is possible its not really a preference. And if it is possible, how do I do it?
Edit - 2nd August 2012 : My app has its own Settings screen in addition to the built in Settings screen, so my question applies to both screens. Also, note that the setting is a UISwitch.
Also, I preferably would like a cancel button on the UIAlertView that allows the user to NOT leave the settings screen once they have read the warning. Is this possible?
You cannot do it for the iOS Settings app, but in your own app's settings view controller you could show an alert on viewWillDisappear:
UPDATE: From the comments, you want to override the back button behaviour. I would suggest that you hide the back bar button item and create your own button. Then if the user accepts in the prompt, you call [self popViewControllerAnimated:YES];
As of yet I do not believe my aim is possible on the traditional settings screen.
On my own settings screen, a UIAlertView is possible when the back button is pressed. The solution can be found here. However, it breaks the parts of my app which automatically pop screens without the user pressing the back button.
I therefore simply have made a UIAlertView pop up when the setting itself is changed. I haven't included a 'cancel' button on the pop up.
Further alternative answers here on Stack Overflow, however, will be welcome!
I have a login-screen.
After the user enters his credentials, he clicks on "Login" to login.
Now in the background with the login there will be a load of a few things, so it need around 3 seconds to display the next view.
How to solve that the screen is not freezing within this 3 seconds?
I had the idea to solve this by a loading screen (Typical for iPhone Apps) or shange the clicked button to "Try to Login...", so the user is not only thinking "has my click worked or should I click again"...
I hope its understandable...
Whats to do?
I suggest to use MBProgressHUD its show an indicator with label if you want like "loading" for example and disable the user action on the view also its easy to use and has a good/simple interface.
you can find it on this link