可以自定义facebook按钮SDK吗?我需要我的转动按钮图像或将按钮的背景设置为图像
var likeControl:FBSDKLikeControl = FBSDKLikeControl()
likeControl.objectID = fbPage
likeControl.likeControlStyle = FBSDKLikeControlStyle.BoxCount
likeControl.backgroundColor = UIColor(patternImage: UIImage(named: "fblike")!)
likeControl.frame = CGRectMake(16,20, 290, 40)
self.viewBotoes.addSubview(likeControl)
答案 0 :(得分:0)
您无法将自己的背景图片分配给FBSDKLikeControl
,UIControl
继承自FBSDKLikeControl
foregroundColor
仅展示一些属性,例如FBSDKLikeControlAuxiliaryPosition
,FBSDKLikeControlHorizontalAlignment
,likeControlStyle
,preferredMaxLayoutWidth
,soundEnabled
和{{1} }