Commits

Mike Abdullah  committed cc63f54

Were firing KVO change notification too late

  • Participants
  • Parent commits 6402f66

Comments (0)

Files changed (1)

File BWTabViewController.m

     }
     
     _selectedViewController = controller;
+    [self didChangeValueForKey:@"selectedViewController"];  // fire here so tabview matches selection before dispatching -viewDidDisappear: etc. messages
     
     [self didSelectViewController];
     if (visible)
         [oldSelection viewDidDisappear:NO];
         [controller viewDidAppear:NO];
     }
-    [self didChangeValueForKey:@"selectedViewController"];
 }
 
 - (NSUInteger)selectedIndex;