Present Modal view over Modal view not showing

I've had a look on SO and can't find an answer to this. I'm presenting a modal view from:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
     [tableView deselectRowAtIndexPath:indexPath animated:YES];
     ICObservationEditController *controller = [[ICObservationEditController alloc] initWithObservation:[self.observations objectAtIndex:indexPath.row]];
     UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller];
     navController.navigationBar.barStyle = UIBarStyleBlackOpaque;
     navController.navigationBar.tintColor = [UIColor grayColor];
     [self.editController presentModalViewController:navController animated:YES];

Once presented, as an option I want to present a text message over the top from the MessageUI framework:

MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
if([MFMessageComposeViewController canSendText]) {

    //code here for text body

    controller.recipients = [NSArray arrayWithObjects:@"", nil];
    controller.messageComposeDelegate = self;
    [self.editController presentModalViewController:controller animated:YES];

The debugger confirms I'm receiving the event, but no view is presented. The code is correct as I have used the exact same code in other apps when not already in a modal view.


The UIKit won't allow this but there are workarounds. This article should help you.

Need Your Help

Why doesn't left bit shift << shift beyond 31 for long int datatype?

c++ bit-shift

I want to use the following code in my program but it gcc won't allow me to left shift my 1 beyond 31.

Errors with jQuery Mobile using a Single, Dynamic .html page which links to n JQM “pages”

jquery ajax dynamic jquery-mobile dynamic-content

I have a mobile site, which consists of a single HTML page (Mobile.html). The content is loaded dynamically into JQM formatted divs of data-role="page". The only static content on the page is the b...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.