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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:15:56+00:00 2026-05-19T13:15:56+00:00

I have to make an application with six views, which can be accessed to

  • 0

I have to make an application with six views, which can be accessed to by bar button items on a toolbar.

I’m really new at this.
I have a view controller and a XIB file for each view, with six functions (goToView1, goToView2, …, goToView6).

Here is an example :

SecondViewController *secondview;

-(IBAction)goToView2 {
    secondview = [[SecondViewController alloc] 
                 initWithNibName:@"SecondViewController" bundle:nil];
    [self.view addSubview:secondview.view];
}

But as you can see, if I want to go from view3 to view2, I’m not deleting the view3 from the stack : I’m just adding the view2 over it.
So here’s my problem, how do I “delete” my view before using addSubView ?
I tried with removeFromSuperView, but I think I’m not using it right.

Thanks for helping, as I said I’m really new and I am aware it can be a stupid question :/

  • 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-19T13:15:57+00:00Added an answer on May 19, 2026 at 1:15 pm

    It sounds very much like you want to use a UITabBarController, as this will provide the toolbar (with icons), etc. and will automatically handle displaying the appropriate view controller when a specific toolbar icon is selected.

    However, I’d really recommend first reading the View Controller Programming Guide for iOS document, as it provides a good overview of the various UIKit controllers, etc. and how they should be used. If you take the time to read and understand this now, it’ll serve you well in the future.

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

Sidebar

Related Questions

In my XUL application I have to make a system call which is more
Current database have 200 thousand record. I want to make iPad application , can
I have make the application of GPS which give me the Latitude and Longitude
Project Description: I have to make an application in android which gets the Latitude
I have to make an iPhone application. I have one button and button name
I have to make an application in which the user moves around a screen,
My issue is, I have to make one demo application in which I wants
In our application we sometimes have to make minor GUI modifications for different customers:
I'm working on an application where users have to make a call and type
I have a Java application and I would like to make it extensible. To

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.