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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:06:28+00:00 2026-06-17T11:06:28+00:00

I have a custom tab bar in my app. I am using a raised

  • 0

I have a custom tab bar in my app. I am using a raised custom button for the middle of the tab bar. This custom middle button should change to a selected state after the user makes a button tap from the first tab.

The button’s action on the first tab is:

[self.tabBarController setSelectedIndex:1];

I am using my own Tabbar Controller class so I am able to draw the custom button in the middle. I have the button changing states when it is selected manually, but I need it to change states when the button tap occurs from the first tab and sets the selected index to the middle tabbar button.

Let me know if I can give more information. Thanks for putting up with a newb!

  • 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-17T11:06:30+00:00Added an answer on June 17, 2026 at 11:06 am

    I solved this by casting self.tabBarController to my custom tabBarController:

    customTabBarController *tabBarController = (customTabBarController *)self.tabBarController;
    

    Then to reference the button and set selected I simply did:

    [tabBarController.button setSelected:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build a custom tab bar for mya app and I have
In my iPhone app I have implemented a custom tab bar which functions perfectly,
i have this custom tab widget.. before i've customized it, by default i have
Problem I have a custom tab control using Chrome-shaped tabs that binds to a
This may be have a better name than custom tab completion, but here's the
I have this case where I am using a custom UITabBar in my application.
I have a custom tab bar controller subclass and instead of a tab bar,
I have a complicated structure where I have a custom tab-bar controller that houses
I have an app with a tab bar controller at the root. The home
I want to create a custom tab bar for an iphone app that looks

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.