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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:56:24+00:00 2026-05-27T23:56:24+00:00

Possible Duplicate: Is there anyway to add same scroll menubar at the navigation bar?

  • 0

Possible Duplicate:
Is there anyway to add same scroll menubar at the navigation bar?

May be it is a stupid question but i have to solve it at any cost because my whole project depending on it.My question is,

I have four view controller A, B, C, D.

A has 4 buttons btn1,btn2,btn3,brn4. when i will start click on btn then

btn1 click -> A controller reload or current controller reload;

btn2 click -> B controller open;

btn3 click -> C controller open;

btn4 click -> D controller open;

B has 4 buttons btn1,btn2,btn3,brn4. when i will start click on btn then

btn1 click -> A controller open;

btn2 click -> B controller reload or current controller reload;

btn3 click -> C controller open;

btn4 click -> D controller open;

C has 4 buttons btn1,btn2,btn3,brn4. when i will start click on btn then

btn1 click -> A controller open;

btn2 click -> B controller open;

btn3 click -> C controller reload or current controller reload;

btn4 click -> D controller open;

D has 4 buttons btn1,btn2,btn3,brn4. when i will start click on btn then

btn1 click -> A controller open;

btn2 click -> B controller open;

btn3 click -> C controller open;

btn4 click -> D controller reload or current controller reload;

I need detail process how can i do that?

Thanks In Advance.

EDIT:

All of my these controller (A,B,C,D) are in tabbar controller and buttons are in a scrollview which are at the top of the controller.I have attaching a image of these UI,till now i have done this….

enter image description here

further any query please do not hesitate to ask.
Thanks again

EDIT 2:

This is scrollview of button which i have imported in every controller viewDidload of tabbar items.

scrollButtonView = [[scrollViewButtons alloc] initWithNibName:@"scrollViewButtons" bundle:nil];
CGRect frame = CGRectMake(0, 20, 320, 43);
scrollButtonView.view.frame = frame;
scrollButtonView.view.userInteractionEnabled =YES;
[self.navigationController.view addSubview:scrollButtonView.view]; 

here is the code where i want to switch the controller on button click.but problem is when i import those A,B,C,D then i found an error Unknown controller

 -(void)mybuttons:(id)sender{   
NSLog(@"mybuttons called");
UIButton *button=(UIButton *)sender;
if (button.tag == 0) {
    NSLog(@"hey have clicked first button, this is my tag : %i \n\n",button.tag);
    [button setBackgroundImage:[UIImage imageNamed:@"btn_topmenu_hover.png"] forState:UIControlStateSelected]; //sets the background Image]
}
else {
    [button setBackgroundImage:[UIImage imageNamed:@"btn_topmenu_normal.png"] forState:UIControlStateNormal]; //sets the background Image]

}
if (button.tag == 1) {
    NSLog(@"hey have clicked second button, this is my tag : %i \n\n",button.tag);
    [button setBackgroundImage:[UIImage imageNamed:@"btn_topmenu_hover.png"] forState:UIControlStateNormal]; //sets the background Image]
    self.tabBarController.selectedIndex = 1;
}
else  if (button.tag == 2) {
    NSLog(@"hey have clicked first button, this is my tag : %i \n\n",button.tag);
    [button setBackgroundImage:[UIImage imageNamed:@"btn_topmenu_hover.png"] forState:UIControlStateNormal]; //sets the background Image]

  //UIViewController *newController = [[UIViewController alloc] initWithNibName:@"CustomerViewController" bundle:nil];
    //UINavigationController *myCustomerController = [[[UINavigationController alloc] initWithRootViewController:newController] autorelease];
    //UINavigationController *myCustomerController = [[UINavigationController alloc] initWithNibName:@"CustomerViewController" bundle:nil];
    UIViewController *secondViewController = [[UIViewController alloc] initWithNibName:@"CustomerViewController" bundle:nil];
    [self.navigationController pushViewController:secondViewController animated:YES];
    self.tabBarController.selectedIndex = 2;
}
 else if (button.tag == 3) {
    NSLog(@"hey have clicked second button, this is my tag : %i \n\n",button.tag);
      [button setBackgroundImage:[UIImage imageNamed:@"btn_topmenu_hover.png"] forState:UIControlStateNormal]; //sets the background Image]
      //[self.navigationController pushViewController:cstViewController animated:YES];
       self.tabBarController.selectedIndex = 3;
     }
   }

EDIT3:

Any way i have to solve the problem so i have tried a lot of way but i missed a simple matter. when i want to change the tap bar then then also i am getting these buttons so i have solved this problem a little bit different way..see my answer you will get the answer..

further any question pls ask. Any how i have to solve the problem.

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-05-27T23:56:25+00:00Added an answer on May 27, 2026 at 11:56 pm

    Have you considered using a UITabBarController – that implements the functionality you are describing.

    The buttons in the scroll view just replicates the tab bar functionality – resulting in a confusing user experience.

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

Sidebar

Related Questions

Possible Duplicate: Any way to add HttpHandler programatically in .NET? Is there a way
Possible duplicate question: Is there a way to indefinitely pause a thread? In my
Possible Duplicate: Change the native confirm/alert alert(hello) Is there anyway to change the style
Possible Duplicate: Priority queue in .Net This question is similar, but i want to
Possible Duplicate: Is there anyway to replace or silence the camera shutter sound in
Possible Duplicate: Is there an attribute I can add to a class so it
Possible Duplicate: Is there anyway to set values in the settings.bundle from within the
Possible Duplicate: Splitting a string into chunks of a certain size Is there anyway
Possible Duplicate: SubMenu Layout Android Is there anyway to make the following submenu look
Possible Duplicate: Change Notification with Sql Server 2008 Am just wondering is there's anyway

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.