FBSDKMessengerShareButton
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Provides a helper method to return a UIButton intended for sharing to Messenger

Superclass:NSObject
Declared in:FBSDKMessengerShareButton.h
클래스 메서드
circularButtonWithStyle:

Returns a circular UIButton customized for sharing to Messenger of default size

매개변수설명
style

Specifies how the button should look

+ (UIButton *) circularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style;
circularButtonWithStyle:width:

Returns a circular UIButton customized for sharing to Messenger

매개변수설명
style

Specifies how the button should look

width

The desired frame width (and height) of this button.

+ (UIButton *)
circularButtonWithStyle: (FBSDKMessengerShareButtonStyle)style
width: (CGFloat)width;
Discussion:

This button's asset is drawn as a vector such that it scales appropriately using the width parameter as a hint. This hint is to prevent button resizing artifacts.

rectangularButtonWithStyle:

Returns a rounded rectangular UIButton customized for sharing to Messenger

매개변수설명
style

Specifies how the button should look

+ (UIButton *) rectangularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style;
Discussion:

This button can be resized after creation There is 1 string in the implemention of this button which needs to be translated by your app: NSLocalizedString(@"Send", @"Button label for sending a message")

Typedef
NS_ENUM

Defines what visual style a UIButton should have

typedef NS_ENUM(NSUInteger, FBSDKMessengerShareButtonStyle) {
FBSDKMessengerShareButtonStyleBlue = 0, FBSDKMessengerShareButtonStyleWhite =
1, FBSDKMessengerShareButtonStyleWhiteBordered = 2,
};