我正在SLComposeViewController
撰写要在 Facebook 上分享的文本。我想自动添加我的公司名称(类似于 Facebook 中的@)。所以它看起来像:“.... @company”,@company 将是公司 Facebook 页面的链接。
当前代码:
SLComposeViewController *mySLComposerSheet = nil;
NSString* shareString = @"I just used app from @company";
mySLComposerSheet = [[SLComposeViewController alloc] init]; //initiate the Social Controller
mySLComposerSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[mySLComposerSheet setInitialText:shareString];
[self presentViewController:mySLComposerSheet animated:YES completion:nil];