I created a view based app. In a view Controller class I created a tab bar Dynamically. The App is running fine, but I am having a problem with handling a push-notification. While Push-notification sent means I received the push alert, I want to know how to show selected index 3 of my Tab bar.
in the view based application after 2 class i create this tabbar dynamically.
tabbar1 = [[UITabBarController alloc] init];
tab_obj1 = [[First alloc] initWithNibName:@"First" bundle:nil];
UINavigationController *tabItem1 = [[[UINavigationController alloc] initWithRootViewController: tab_obj1] autorelease];
tabItem1.title=@"First";
tabItem1.tabBarItem.image=[UIImage imageNamed:@"FirstIcon.png"];
tab_obj2 = [[Second alloc] initWithNibName:@"Second" bundle:nil];
UINavigationController *tabItem2 = [[[UINavigationController alloc] initWithRootViewController: tab_obj2] autorelease];
tabItem2.title=@"Second";
tabItem2.tabBarItem.image=[UIImage imageNamed:@"SecondSelc.png"];
tab_obj3 = [[Third alloc] initWithNibName:@"Third" bundle:nil];
UINavigationController *tabItem3 = [[[UINavigationController alloc] initWithRootViewController: tab_obj3] autorelease];
tabItem3.title=@"Third";
tabItem3.tabBarItem.image=[UIImage imageNamed:@"ThirdIcon.png"];
tab_obj4 = [[Fourth alloc] initWithNibName:@"Fourth" bundle:nil];
Hi Developers,
Thanks for responding me.
I will show that badge value inside the tabBar tab.
I create tabBar controls again in didReceiveRemoteNotification method and in non-active state app from this
tabbarcontroller_obj.tabBarItem.badgeValue=@"3"Like this I handle the notification badge value inside the application.