Commits

Ivan Andrus committed 096f2fd

Fixed crashing bug due to the gesture recognizer (again)

Comments (0)

Files changed (1)

Classes/EditViewController.m

 #pragma mark Button methods
 
 - (void)newCell:(id)sender {
+    // Popping the view controller means we lose track of the
+    // navigation bar, so we pretend it's disapprearing.
+    [self viewWillDisappear:NO];
     [self.navigationController popViewControllerAnimated:NO];
     [delegate editViewControllerDidFinish:self
                               nextDefault:@""
         [selectedObject setValue:[NSNumber numberWithInt:AlephCellStatusHasInput] forKey:@"status"];
     }
 
+    // Popping the view controller means we lose track of the
+    // navigation bar, so we pretend it's disapprearing.
+    [self viewWillDisappear:NO];
     [self.navigationController popViewControllerAnimated:NO];
     [delegate editViewControllerDidFinish:self
                               nextDefault:initial_value.input