In my iOS app, i am trying to send Tweet once sending the SMS. what the problem here is it shows the sms screen and tap send button then the control comes to my "Send Tweet" method but it is not showing the "Tweet" Sending Screen.
And when i call my "Send Tweet" method without calling the sms sending functions , it works and shows the tweet sending screen.but why is not showing the tweet sending screen after sending the sms.
//=================================================================================
- (void)messageComposeViewController:(MFMessageComposeViewController *)controller
didFinishWithResult:(MessageComposeResult)result {
//=================================================================================
switch (result)
{
case MessageComposeResultCancelled:
NSLog(@"Result: canceled");
break;
case MessageComposeResultSent:
NSLog(@"Result: sent");
[self logSMSSentInfo];
break;
case MessageComposeResultFailed:
NSLog(@"Result: failed");
break;
default:
NSLog(@"Result: not sent");
break;
}
[self dismissModalViewControllerAnimated:YES];
[self performSelectorOnMainThread:@selector(SendTweet) withObject:nil waitUntilDone:NO];
}
// this function is to send tweet
//============================================
-(void)sendTweet:(NSString*)inTweetAccountInfo{
//============================================
if ([TWTweetComposeViewController canSendTweet])
{
NSString *aTweetMsg;
}
}