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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:18:39+00:00 2026-05-23T12:18:39+00:00

I know this has been answered before in different ways, but I am a

  • 0

I know this has been answered before in different ways, but I am a novice programmer and really need some contextual help. I have a basic application that has multiple view controllers (.h, .m, .xib each. EX. about.h, about.m, about.xib, options.h, options.m, etc.). I need to switch between them on the press of a button.

I had been using:

xxxViewController *titleScreen = [[xxxViewController alloc] initWithNibName:@"xxxViewController" bundle:[NSBundle mainBundle]];
    [self.view addSubview:titleScreen.view];
    [xxxViewController release];

and it worked fine to switch the views. But then I noticed that in Instruments, the overall/net bytes kept climbing, without “releasing” the view that it came from.

Am I doing something wrong? Please help… I’m desperate!

  • 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-23T12:18:39+00:00Added an answer on May 23, 2026 at 12:18 pm

    You aren’t switching views, you’re just just adding one on top of the other that way. If you want to navigate between different views, chances are, you want a navigation controller.

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

Sidebar

Related Questions

I know this type of question has been asked and answered before but I
I know this has been asked different ways several times, but I'm just not
I know this has been answered before, but it seems that executing the script
This has probably been answered before, but I have spent some time looking and
I know that something similar to this has been answered before but its not
I know this has probably been answered before, but I cannot find much information
I know this has been answered before, but I'm a newb and I can't
I know this question has been answered before in this thread , but I
I know this question has been asked and answered before, but none of the
I know this has probably been answered multiple times before, but this is the

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.