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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:53:16+00:00 2026-05-25T05:53:16+00:00

I am looking to to develop an app where there will be n number

  • 0

I am looking to to develop an app where there will be “n” number of views created based on the user’s interaction. If each of these views are created dynamically with autorelease, when will the view actually be released?

Lets say there are 10 views, all being dynamically created views with autorelease:

  1. View 1 is created and added to a navigation stack, user is shown view 1
  2. User moves to another view “View 2”, View 1 is pushed off the stack and View 2 is added. Will View 1 be released here? I would not want it to be released, so should i retain it?
  3. The problem is, i might not know how many views i am creating, so deallocating them manually might be problem, or is there a way?

I am a little confused soul here.

Thanks

  • 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-25T05:53:17+00:00Added an answer on May 25, 2026 at 5:53 am
    1. You don’t add views to navigation stack, you add view controllers.
    2. When you push view controller 2, the 1st one will not get released, no. Navigation controller will always keep all it’s view controllers retained until they are popped off the stack. It will only call -unloadView on non-displayed view controllers to free up some memory, but if you are creating your views inside view controllers’ loadView method, everything will get recreated automatically.
    3. You don’t dealloc anything manually, you can only release it. Since navigation controller will retain any view controller you add on it’s stack, you are free to release it yourself.

    From the way you ask your questions, I’ve noticed you are missing some very basic knowledge about iOS SDK, MVC and OOP in general. I would honestly suggest you try creating a much simpler app than that chat app of yours first to learn some basics.

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

Sidebar

Related Questions

I am looking to develop a web-app that displays an image to the user
I am looking to develop an app that will take login details from the
I'm looking to develop/obtain a simple GMaps app for my site that lets the
I'm looking to develop a small application on Mac OSX and it will need
We are looking to develop an application that will get data from a web
I'm looking to develop a mobile app which is going to help people find
I'm looking to develop a Win32 desktop app - a one off, for a
I'm looking to develop a Blackberry app with storage. Since most of my data
I'm looking at learning JavaFX. I've tried setting Eclipse to develop a small app
I'm trying to develop a web app for a university who's looking to keep

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.