I am attempting to present a modal view after a twitter post is successfully completed; however, I cannot present my controller because the SLComposeViewController is still presenting. Is there some completion method that will call when everything is competed and the view has been dismissed?
SLComposeViewController* tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
tweetSheet.completionHandler = ^(SLComposeViewControllerResult result){
UBSTwitterSuccessViewController* twitterView;
switch(result){
case SLComposeViewControllerResultCancelled:
break;
case SLComposeViewControllerResultDone:
twitterView = [[UBSTwitterSuccessViewController alloc]initWithNibName:XIBTWITTERSUCCESS bundle:nil];
[self presentViewController:twitterView animated:YES completion:nil];
break;
}
};
[tweetSheet setInitialText:@"Check out this cool thing"];
[tweetSheet addURL: [NSURL URLWithString:@"http://www.cad-comic.com/"]];
[self presentViewController:tweetSheet animated:NO completion:nil];
warning with no view presented:
Warning: Attempt to present <UBSTwitterSuccessViewController: 0x16569b70> on <UINavigationController: 0x1663bd30> which is already presenting <SLComposeViewController: 0x166b1170>