我想从我的应用程序在Twitter上发帖,但我继续在日志中收到以下错误
LaunchServices: invalidationHandler called
以下是我在Twitter上发布的方法。此方法位于TwitterViewController
类中,该类继承UIViewController
-(void)tweetHighscore {
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter])
{
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"Tweeting from my own app! :)"];
[self presentViewController:tweetSheet animated:YES completion:nil];
CCLOG(@"it's working okay");
}
}
编辑:
我设置了一个断点,似乎presentViewController:animated:completion:
导致invalidationHandler
。