1. Ivan Andrus
  2. sage-iphone-app

Commits

Ivan Andrus  committed 096f2fd

Fixed crashing bug due to the gesture recognizer (again)

  • Participants
  • Parent commits 8534edf
  • Branches default
  • Tags 2.1.0-r1

Comments (0)

Files changed (1)

File Classes/EditViewController.m

View file
  • Ignore whitespace
 #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