编辑 FBSDKShareButton 的设计

Edit FBSDKShareButton's design

大家晚上好!

我想调整我的 FaceBook 分享按钮上的布局和文本,使其显示的不仅仅是 "Share"

这可能吗?我已经能够调整按钮的框架,但我至少想将 "Share" 更改为其他内容。或者至少获得瑞典语的分享!

这是我的代码:

    FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
    content.contentURL = [NSURL URLWithString:@"http://www.google.se"];
    content.contentTitle=@"I like google!";

    FBSDKShareButton *button = [[FBSDKShareButton alloc] init];
    button.shareContent = content;
    button.frame =  CGRectMake(self.view.center.x, self.view.center.y, 100, 50);
    button.center = self.view.center;

    [self.view addSubview:button];

您不能更改 iOS 的 Facebook SDK 附带的共享按钮的设计。您可以做的是构建您自己的按钮(使用 UIButton)并使其在点击后调用共享代码。