0

晚上好!

我想调整我的 FaceBook 共享按钮上的布局和文本,使其显示的内容不仅仅是“共享”

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

这是我的代码:

    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];
4

1 回答 1

0

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

于 2015-12-16T10:34:40.363 回答