title: TabviewController How to show the unread messages like as badges?
body: <p><a href="https://i.stack.imgur.com/D2fe0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D2fe0.png" alt="enter image description here"></a></p>
  
  <p>Here i am using the 4 tabViews, third one is chat button so here user unread messages how to show the badges </p>
  
  <p>in #import "HomeTabViewController.h"</p>
  
  <pre><code> - (void)viewDidLoad {
    [super viewDidLoad];
      NSString *badgeVal = @"5";
    [[[[self.tabBarController viewControllers] objectAtIndex:2]  tabBarItem] setBadgeValue:badgeVal];
    }
  </code></pre>