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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:19:31+00:00 2026-06-09T05:19:31+00:00

This is mainly a delegation question because I’m still learning and don’t get it.

  • 0

This is mainly a delegation question because I’m still learning and don’t get it. I don’t know how to go about creating the delegate I need.

I have a tabbed view controllerwith 2 views, let’s call them view 1 and view 2. Then I have a settings view which is not part of the tabbed navigation and accessible by both view 1 and 2.

How do I go about changing the label of a UITabBarItem from the settings view with a text field. You can change a UITabBarItem by setTitle, but I don’t know how to set up the delegation.

To give you perspective, View 1 and View 2 are actually Player 1 and Player 2. I want to give the user the option to change the PLayer 1 and PLayer 2 labels to their actual names via the settings screen.

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-09T05:19:34+00:00Added an answer on June 9, 2026 at 5:19 am

    Add the following code in the Settings View Controller (that is presented modally) and call it when you need to change the text field of one of the tabbaritems.

    UITabBarController  *tabBarController =(UITabBarController *)[self presentingViewController];
    NSArray *tabBarItems =[tabBarController.tabBar items];
    UITabBarItem *barItem1=[tabBarItems objectAtIndex:0 ]; // or 1
    barItem1.title=@"NewName";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is mainly a delegation question because I'm still learning and don't get it.
Mainly this is a question about how to get a similar behaviour as java
This is mainly a theoretical question i.e I don't have any need for a
This question is mainly about protecting the content inside my iOS app. I intend
This is mainly a Delphi syntax related question. I need to set a parameter
This is mainly in regards to my question here , but I don't understand
I am having trouble with this setup mainly because I am not sure what
This question is mainly to verify my current idea. I have a series of
This question is mainly aimed at shared libraries (.so files) compiled for Linux platforms.
I'm mainly asking this to professionals who know the playing field of professional developing.

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.