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

  • Home
  • SEARCH
  • 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 7064843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:53:02+00:00 2026-05-28T04:53:02+00:00

so guys, i’ve been wondering, currently i’m in the middle of learning on developing

  • 0

so guys, i’ve been wondering, currently i’m in the middle of learning on developing apps. i saw a CNBC apps at ipad that looks like the image here : (sorry, new user cant directly post image D:)

http://images.thoughtsmedia.com/resizer/thumbs/size/600/at/auto/1291813093.usr105634.jpg

my question is, what are those 2 bars on top of the app??(the one with markets, and indexes)

is it a tabbar controller?? if it is how do we put it on top of the app instead of at the bottom like it normally is, and how do we have another tabbar inside a tabbar???

i appreciate your helps, and sorry for my bad english :3

  • 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-28T04:53:03+00:00Added an answer on May 28, 2026 at 4:53 am

    okay, i have found the solution to this, by far i’ve tried both customized tabbar and segmented controller, but i found both of them risky and too complicated

    so i do a little experiment with simple button

    here’s the main idea

    first, i set up a toolbar, and give it a background

    -in viewController.h

    //adding my viewcontrollers
    
    @class notLoggedHome;
    @class LoggedInHome;
    @class NABViewController;
    
    
    //defining all the objects
    
    @properties (nonatomic, strong) UIToolBar *mainToolBar;
    @properties (nonatomic, strong) UIButton *toolBarBut1, *toolBarBut2, *toolBarBut3;
    @properties (nonatomic, strong) UIImageView *logoImage;
    
    
    @property (nonatomic, strong) notLoggedHome *viewNotLoggedHome;
    @property (nonatomic, strong) LoggedInHome *viewLoggedInHome;
    @property (nonatomic, strong) NABViewController *viewNAB;
    
    @properties NSInteger lastTag;
    

    -in viewController.m

    @synthesize mainToolBar, toolBarBut1, toolBarBut2, toolBarBut3;
    @synthesize logoImage, lastTag;
    @synthesize viewNotLoggedHome, viewLoggedInHome, viewNAB;
    
    -(void)viewDidLoad
    {
        lastTag = 100;
        self.view.backgroundColor = [UIColor colorWithRed:21.0/255.0 green:21.0/255.0 blue:21.0/255.0 alpha:1];
    
    
        //---
    
        //---fakeTabBar set up===
    
        viewNotLoggedHome = [[notLoggedHome alloc]init];
        viewLoggedInHome = [[LoggedInHome alloc]init];
        viewNAB = [[NABViewController alloc]init];
    
    
    
        //creating the fakeTabBar
        mainToolBar = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 70)];
        [mainToolBar setBackgroundImage:[UIImage imageNamed:@"menu_bar.jpg"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
    
    //defining images
        imgHome = [UIImage imageNamed:@"menu_home.png"];
        imgHomeS = [UIImage imageNamed:@"menu_home_s.png"];
        imgLogo = [UIImage imageNamed:@"menu_bar_logo_ep.png"];
    
        UIImageView *logoImage = [[UIImageView alloc]initWithImage:imgLogo];
        logoImage.frame = CGRectMake(0, 0, imgLogo.size.width, imgLogo.size.height);
    
    
        //--button setting====
    
        toolBarBut1 = [UIButton buttonWithType:UIButtonTypeInfoLight];
        [toolBarBut1 setFrame:CGRectMake(imgLogo.size.width, 1, imgHome.size.width, imgHome.size.height)];
        toolBarBut1.tag = 0;
        toolBarBut1.backgroundColor = [UIColor colorWithWhite:1 alpha:0];
        [toolBarBut1 setImage:imgHome forState:UIControlStateNormal];
        [toolBarBut1 setImage:imgHomeS forState:UIControlStateSelected];
        [toolBarBut1 addTarget:self action:@selector(barPressed:) forControlEvents:UIControlEventTouchUpInside];
    
    //do the same with the other 2 button
    
        //---------------------
    
        [mainToolBar addSubview:logoImage];
        [mainToolBar addSubview:toolBarBut1];
    //do the same with the other 2 button
        [self.view addSubview:mainToolBar];
    
        [super viewDidLoad];
    }
    
    -(void)barPressed:(id)sender
    {
        UIButton *button = (UIButton *)sender;
        if(button.tag == 0 && button.tag != lastTag)
        {
            [viewNAB removeFromParentViewController];
            [viewNotLoggedHome removeFromParentViewController];
            [self.view addSubview:viewLoggedInHome.view];
            button.selected = YES;
        }
        if(button.tag == 1 && button.tag != lastTag)
        {
            [viewNAB removeFromParentViewController];
            [viewLoggedInHome removeFromParentViewController];
            [self.view addSubview:viewNotLoggedHome.view];
            button.selected = YES;
        }
        if(button.tag == 2 && button.tag != lastTag)
        {
            [viewLoggedInHome removeFromParentViewController];
            [viewNotLoggedHome removeFromParentViewController];
            [self.view addSubview:viewLoggedInHome.view];
            button.selected = YES;
        }
    
        lastTag = button.tag;
    }
    

    so the main idea is creating a fake tabbar by using toolbar, assigning UIButton(s) to the toolbar as the fake tabbaritem, and giving mechanism to each button that later will switch your viewcontrollers (you have to alloc the viewcontrollers first at implementation file)

    this works well for me, just dont forget to set the view controllers frame Y point +(toolbar Height) because otherwise it will cover the toolbar later

    🙂

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

Sidebar

Related Questions

Guys I am looking for a third party software that applies classifiers (like SVM,
guys. I've been searching for an answer for my issue the whole morning, but
Guys that is code copied from a book (Programming Windows 5th edition): #include <windows.h>
Guys if I have class like below: template<class T> class X { T** myData_;
guys i have a xml file which is like this: <Point TestFlag=0 id=1 name=Conversation
guys i got a php file that use it as xml for a flash
Guys I have been trying lots of different options from cutting up to building
Guys, Can you please tell me that ,I wants to learn Azure , by
Guys i need to call a function in such a view that if there
guys. I've a iPhone app on the AppStore. I am going to upload iPad

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.