salocinx salocinx - 1 year ago 104
iOS Question

iOS: Why is Facebook logout button is not displayed properly?

I am trying to integrate Facebook login into my iOS app (using XCode 6+ and Deployment Target is iOS 7.0). I have placed a normal UIButton to my ViewController in the storyboard and changed to custom class with FBSDKLoginButton since I needed the button in slight bigger size than originally.

The login process works great and the login button image is shown perfectly, but after login the button changes to "logout" and the background seems transparent with some strange white rectangle behind.

Here's an illustration of the issue:

enter image description here

Somebody any idea what I am doing wrong ?

Answer Source

I'm facing the same issue using an UIButton, but I changed it to an UIView and it is working perfectly. Probably go with that approach, or implement a custom button (Objective-C)