iOS12中的推文,iPhoneX不起作用。
-(void)TweetHighScore
{
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"Testing"];
[App.viewController presentViewController:tweetSheet animated:YES completion:nil];
}
上面的代码有什么问题?