【发布时间】:2015-12-17 20:25:08
【问题描述】:
我正在尝试在 iOS 9 中将初始文本设置为 SLComposeViewController,但它在对话框中显示为空白。
这是我的代码。
SLComposeViewController *composeController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
NSString *initialText = @"Tesing text issue.";
if (initialText != Nil)
{
[composeController setInitialText:initialText];
}
dispatch_async(dispatch_get_main_queue(), ^
{
//show progress hud here
[self presentViewController:composeController animated:YES completion:nil];
});
我也在另一个共享应用程序中检查过这个,他们也有同样的问题。任何人都可以在这里有任何解决方法吗?
【问题讨论】: