Cannot change the height of Login Button in FBSDKLoginKit?

后端 未结 12 1629
刺人心
刺人心 2021-02-05 09:19

I am using FBSDKLoginKit in iOS with Swift.

Up until recently it has been working perfectly, however I now cannot override the height of my button in the St

12条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 09:41

    Autolayout does not work on Facebook button(FBSDKButton) anymore. I changed its height using buttons frame.

        let fbLoginbutton = FBSDKLoginButton()
    
        view.addSubview(fbLoginbutton)
    
        fbLoginbutton.frame = CGRect(x: 38, y: 397, width: 300, height: 38)
    

    You can set it according to your requirement. Although I'm still not able to change its font & Logo size.

提交回复
热议问题