FBSDKLikeControl Class Reference
Inherits from | UIControl |
Conforms to | FBSDKLiking |
Declared in | FBSDKLikeControl.h |
Overview
@class FBSDKLikeControl
Taps on the like button within this control will invoke an API call to the Facebook app through a fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update with the new state and send actions for the UIControlEventValueChanged event.
Tasks
-
foregroundColor
property -
likeControlAuxiliaryPosition
property -
likeControlHorizontalAlignment
property -
likeControlStyle
property -
preferredMaxLayoutWidth
property -
soundEnabled
property
Properties
foregroundColor
The foreground color to use for the content of the receiver.
@property (nonatomic, strong) UIColor *foregroundColor
Declared In
FBSDKLikeControl.h
likeControlAuxiliaryPosition
The position for the auxiliary view for the receiver.
@property (nonatomic, assign) FBSDKLikeControlAuxiliaryPosition likeControlAuxiliaryPosition
See Also
Declared In
FBSDKLikeControl.h
likeControlHorizontalAlignment
The text alignment of the social sentence.
@property (nonatomic, assign) FBSDKLikeControlHorizontalAlignment likeControlHorizontalAlignment
Discussion
This value is only valid for FBSDKLikeControlStyleStandard with FBSDKLikeControlAuxiliaryPositionTop|Bottom.
Declared In
FBSDKLikeControl.h
likeControlStyle
The style to use for the receiver.
@property (nonatomic, assign) FBSDKLikeControlStyle likeControlStyle
See Also
Declared In
FBSDKLikeControl.h
preferredMaxLayoutWidth
The preferred maximum width (in points) for autolayout.
@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth
Discussion
This property affects the size of the receiver when layout constraints are applied to it. During layout, if the text extends beyond the width specified by this property, the additional text is flowed to one or more new lines, thereby increasing the height of the receiver.
Declared In
FBSDKLikeControl.h