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;
FBSDKMessengerShareButton.h
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; |
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.
FBSDKMessengerShareButton.h
rectangularButtonWithStyle:
Returns a rounded rectangular UIButton customized for sharing to Messenger
المعلمة | الوصف |
---|---|
style | Specifies how the button should look |
+ (UIButton *)
rectangularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style;
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")
FBSDKMessengerShareButton.h
NS_ENUM
Defines what visual style a UIButton should have
typedef NS_ENUM(NSUInteger, FBSDKMessengerShareButtonStyle) { FBSDKMessengerShareButtonStyleBlue = 0, FBSDKMessengerShareButtonStyleWhite = 1, FBSDKMessengerShareButtonStyleWhiteBordered = 2, };
FBSDKMessengerShareButton.h