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 8603055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:14:03+00:00 2026-06-12T02:14:03+00:00

I am working in UITabBarController based iPhone app. My app having 5 taps .

  • 0

I am working in UITabBarController based iPhone app. My app having 5 taps. In my 4th tap UIViewController having one Child UIViewController. My First RootViewController screen title is “All Messages”. My second UIViewController name is “Conversations”.

The screen flow is tap 4 -> All Messages -> Conversation

All Messages contains UITableView so if the user clicks any message from tableview we are taking the user to Conversation screen (UIViewController). This screen shows particular users messages.

From this child UIViewController I have to update Parent viewController’s title name form “All Messages” to “New Messages(1)” and also the back button name should change from “All Messages” to “New Messages(1)”

I have followed the below code to update the screen title. This code is in my Child view controller named Conversation screen.

AllMessagesViewController *mesViewController = [[AllMessagesViewController alloc] init];
mesViewController.navigationItem.title = @"New Messages(1)";

Anyone please help me where am doing wrong? This approach is correct? Please help me to do this. Thanks in advance.

  • 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-06-12T02:14:04+00:00Added an answer on June 12, 2026 at 2:14 am

    Try to use NSNotificationCenter.

    In AllMessagesViewController declare a method:

    - (void)changeTitle:(NSString *)newTitle;
    

    and then register the view controller for a notification event

    [[NSNotificationCenter defaultCenter] addObserver:self 
                                 selector:@selector(changeTitle:) 
                                    name:@"ChangeTitleEvent" object:nil];
    

    Then when you want to change the title from ConversationViewController send a notify:

    [[NSNotificationCenter defaultCenter] postNotificationName:@"ChangeTitleEvent"
                                                   object:@"New Message (1)"];
    

    This method will call changeTitle: method in AllMessagesViewController so you just change the title using the parameter newTitle:

    - (void)changeTitle:(NSString *)newTitle
    {
       self.title = newTitle;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an iPhone application based on UITabBarController and UIViewControllers for each
I have a working iPhone app with a UITabBarController. It all works fine. The
I am working in tabBar based iPhone app. I have 5 UIViewControllers in tabbar
I have put one global tabBarController in iphone app that I have been working
i'm working on an app with core data with storyboard. the app has uitabbarcontroller
Greetings! I have a working iPhone app (huzzah!) that uses a MainView.xib containing a
While, for the most part, orientation is working properly for my app, I'm having
I'm working on making an iPhone version of an Android app that I've written
I have an educational app working fine with tab bars. One of the tabs
I am working in iPhone app with 5 screens. I want to refresh the

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.