FBSDKLikeControl
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

UI control to like an object in the Facebook graph.

Discussion:

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.

Conforms to:FBSDKLiking
Superclass:UIControl
Declared in:FBSDKLikeControl.h
ทรัพย์สิน
foregroundColor

The foreground color to use for the content of the receiver.

@property (nonatomic, strong) UIColor *foregroundColor;
ให้คำรับรองไว้ใน: FBSDKLikeControl.h
likeControlAuxiliaryPosition

The position for the auxiliary view for the receiver.

@property (nonatomic, assign) FBSDKLikeControlAuxiliaryPosition likeControlAuxiliaryPosition;
ให้คำรับรองไว้ใน: 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.

ให้คำรับรองไว้ใน: FBSDKLikeControl.h
likeControlStyle

The style to use for the receiver.

@property (nonatomic, assign) FBSDKLikeControlStyle likeControlStyle;
ให้คำรับรองไว้ใน: 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.

ให้คำรับรองไว้ใน: FBSDKLikeControl.h
soundEnabled

If YES, a sound is played when the receiver is toggled. @default YES

@property (nonatomic, assign, getter = isSoundEnabled) BOOL soundEnabled;
ให้คำรับรองไว้ใน: FBSDKLikeControl.h
Typedefs
NS_ENUM

Specifies the position of the auxiliary view relative to the like button.

typedef NS_ENUM(NSUInteger, FBSDKLikeControlAuxiliaryPosition) {
/*! The auxiliary view is inline with the like button. */
FBSDKLikeControlAuxiliaryPositionInline, /*! The auxiliary view is above the like button.
*/
FBSDKLikeControlAuxiliaryPositionTop, /*! The auxiliary view is below the like button.
*/
FBSDKLikeControlAuxiliaryPositionBottom,
};
Discussion:

(NSUInteger, FBSDKLikeControlAuxiliaryPosition)

ให้คำรับรองไว้ใน: FBSDKLikeControl.h
NS_ENUM

Specifies the horizontal alignment for FBSDKLikeControlStyleStandard with FBSDKLikeControlAuxiliaryPositionTop or FBSDKLikeControlAuxiliaryPositionBottom.

typedef NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment) {
/*! The subviews are left aligned. */
FBSDKLikeControlHorizontalAlignmentLeft, /*! The subviews are center aligned.
*/
FBSDKLikeControlHorizontalAlignmentCenter, /*! The subviews are right aligned.
*/
FBSDKLikeControlHorizontalAlignmentRight,
};
Discussion:

FBSDKLikeControlHorizontalAlignment)

ให้คำรับรองไว้ใน: FBSDKLikeControl.h
NS_ENUM

Specifies the style of a like control.

typedef NS_ENUM(NSUInteger, FBSDKLikeControlStyle) {
/*! Displays the button and the social sentence. */
FBSDKLikeControlStyleStandard = 0, /*! Displays the button and a box that contains the like count.
*/
FBSDKLikeControlStyleBoxCount,
};
ค่าคงตัวคำอธิบาย
FBSDKLikeControlStyleStandard

Displays the button and the social sentence.

FBSDKLikeControlStyleBoxCount

Displays the button and a box that contains the like count.

Discussion:

(NSUInteger, FBSDKLikeControlStyle)

ให้คำรับรองไว้ใน: FBSDKLikeControl.h
NS_ENUM(NSUInteger,

Specifies the horizontal alignment for FBSDKLikeControlStyleStandard with FBSDKLikeControlAuxiliaryPositionTop or FBSDKLikeControlAuxiliaryPositionBottom.

typedef NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment) {
/*! The subviews are left aligned. */
FBSDKLikeControlHorizontalAlignmentLeft, /*! The subviews are center aligned.
*/
FBSDKLikeControlHorizontalAlignmentCenter, /*! The subviews are right aligned.
*/
FBSDKLikeControlHorizontalAlignmentRight,
};
Discussion:

FBSDKLikeControlHorizontalAlignment)

ให้คำรับรองไว้ใน: FBSDKLikeControl.h