escoz/QuickDialog — Issue #45: leftBarButtonItem not visible when presenting modal view controller
Author: twestley
Created: 2012-01-10 03:36:43+00:00
State: open

I have a QuickDialog that works fine as a tab bar page. Now I'm adapting this to another app in which I'd like to present it as a modal view like so:

QRootElement *root = [InfoViewController create];
UINavigationController *nc = [QuickDialogController controllerWithNavigationForRoot:root];
nc.navigationBar.barStyle = UIBarStyleBlack;
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithTitle:@"Done"
style:UIBarButtonItemStyleDone
target:self
action:@selector(doneButtonPressed:)];
nc.navigationItem.leftBarButtonItem = barButton;
[barButton release];
[self presentModalViewController:nc animated:YES];

But in all variations I've tried, the left bar button is hidden. What am I doing wrong?