I am integrating SLService
for Twitter
into an application. It works great on iPhone but disappears on iPad.
I have integrated on the iPad:
[actionSheet showFromRect:self.myRect inView:self.tableView animated:YES];
rather than:
[actionSheet showInView:[UIApplication sharedApplication].keyWindow];
Is there a similar method for the iPad in lieu of presentViewContoller: Animated:
?
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter])
{
SLComposeViewController *tweetSheet = [SLComposeViewController
composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:self.textForTweet];
[self presentViewController:tweetSheet animated:YES completion:nil];
} else [self displayAlertBoxWithTitle:@"Tweet Failed" message:@"Please try again later" cancelButton:@"Close"];
}
Should I be using a Modal dialog instead?