Skip to content
Browse files

Fixed compiler and analyser warnings

  • Loading branch information...
1 parent b53df12 commit c2ca73b4fe486557e678bcd77b4130ac5b6ee55b @jfalb jfalb committed Apr 11, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 NGTabBarController/NGTabBarController.m
View
5 NGTabBarController/NGTabBarController.m
@@ -410,8 +410,13 @@ - (void)navigationController:(UINavigationController *)navigationController didS
- (void)updateUI {
if (self.selectedIndex != NSNotFound) {
UIViewController *newSelectedViewController = self.selectedViewController;
+
[self.tabBar selectItemAtIndex:self.selectedIndex];
+ if (newSelectedViewController == nil) {
+ return;
+ }
+
// show transition between old and new child viewcontroller
if (self.oldSelectedIndex != NSNotFound) {
UIViewController *oldSelectedViewController = [self.viewControllers objectAtIndex:self.oldSelectedIndex];

0 comments on commit c2ca73b

Please sign in to comment.
Something went wrong with that request. Please try again.