FBSDKShareDialog
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

A dialog for sharing content on Facebook.

Conforms to:FBSDKSharingDialog
Inherits from:NSObject
Declared in:FBSDKShareDialog.h
Thuộc tính
fromViewController

A UIViewController to present the dialog from, if appropriate.

@property (nonatomic, weak) UIViewController *fromViewController;
Discussion:

This value is required for FBSDKShareDialogModeShareSheet.

Đã tuyên bố trong: FBSDKShareDialog.h
mode

The mode with which to display the dialog.

@property (nonatomic, assign) FBSDKShareDialogMode mode;
Discussion:

Defaults to FBSDKShareDialogModeAutomatic, which will automatically choose the best available mode.

Đã tuyên bố trong: FBSDKShareDialog.h
Phương thức nhóm
showFromViewController:withContent:delegate:

Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate.

Thông sốMô tả
viewController

A UIViewController to present the dialog from, if appropriate.

content

The content to be shared.

delegate

The receiver's delegate.

+ (instancetype)
showFromViewController: (UIViewController *)viewController
withContent: (id<FBSDKSharingContent>)content
delegate: (id<FBSDKSharingDelegate>)delegate;
Đã tuyên bố trong: FBSDKShareDialog.h