diff -r 74a506c9d71b -r d5cd1a617123 cocoaTouch/iPad/MasterViewController.m --- a/cocoaTouch/iPad/MasterViewController.m Fri Apr 02 10:50:10 2010 +0000 +++ b/cocoaTouch/iPad/MasterViewController.m Fri Apr 02 12:38:36 2010 +0000 @@ -23,7 +23,8 @@ NSLocalizedString(@"Weapons",@""), NSLocalizedString(@"Schemes",@""), nil]; - + self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:0 target:self action:@selector(dismissSplitView)]; + // Uncomment the following line to preserve selection between presentations. //self.clearsSelectionOnViewWillAppear = NO; // Uncomment the following line to display an Edit button in the navigation bar for this view controller. @@ -118,6 +119,9 @@ [super dealloc]; } +-(IBAction) dismissSplitView { + [[NSNotificationCenter defaultCenter] postNotificationName:@"dismissModalView" object:nil]; +} @end