title: set badge on tabbar item when notification received
body: <p>I tried to set badgeValue for <code>UITabBarItem</code> when push notification is received.I am using this code. Here the <code>UITabBarController</code> is not a rootViewController. I tried the same thing in resign active method but there also its not working. </p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
  
    UITabBarController *tabBarController = (UITabBarController *)[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"tabBarController"] ;
    [[tabBarController.tabBar.items objectAtIndex:2] setBadgeValue:@"1"];
  
  }
  </code></pre>