Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6957291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:58:55+00:00 2026-05-27T14:58:55+00:00

I created a view based app. In a view Controller class I created a

  • 0

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];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:58:55+00:00Added an answer on May 27, 2026 at 2:58 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a fresh view-based app project which has a MyProjectViewController.xib. Then I created
I have a tab bar + navigation based app and I'd like to launch
I have a navigation controller app. I created a RootViewController class with Xib file.
I created a new Xcode project with a view-based app template. In the .m
I've created a new View-based Application in XCode. In the ViewController, the only code
I've just created a new view based application, and now I want to set
I have created an iPhone application based on an OpenGL view. Now I would
I want to create a 'detail view' in my navigation-based app similar to the
I have created a view based application and in the appdelegate .h file I
I built a very simple tab based app with 2 tabs, each tab tied

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.