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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:53:50+00:00 2026-06-02T05:53:50+00:00

This is an incredibly basic question, but I’m not sure what’s the best method

  • 0

This is an incredibly basic question, but I’m not sure what’s the best method of doing this professionally.

Suppose I want to make an app where the user just taps through multiple pages (a page might just be a screen with a background image and a few buttons). Now and then they might tap back to access a previous page.

I’ve come from cocos2d, so what’s actually the best way to do this with Cocoa Touch? Do I have a seperate view for each page and just keep adding/removing them to the main view controller? Would I load everything at the start or drop a page from memory when the user clicks away?

Please give me a general approach as to how you would do this. 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-06-02T05:53:52+00:00Added an answer on June 2, 2026 at 5:53 am

    The best way to do that is to use a UINavigationController. You can do something like this :

    AppDelegate.h

    UINavigationController *navigationController;
    
    @property (nonatomic, retain) UINavigationController *navigationController;
    

    AppDelegate.m

    @synthesize navigationController;
    // In ApplicationDidFinishLaunching
    UIViewController *yourMainViewController = [[UIViewController alloc] init];
    self.navigationController = [[UINavigationController alloc] initWithRootViewController:yourMainViewController];
    self.window.rootViewController = self.navigationController;
    

    in YourMainViewController.m

    // When you click on a button
    [[self.navigationController pushViewController:yourNewViewController animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an incredibly basic question, but how do I start a new CUDA
Preface: I am sure this is incredibly simple, but I have searched this site
I'm really sorry. This must seem like an incredibly stupid question, but unless I
This is a pretty basic scenario but I'm not finding too many helpful resources.
I apologize for the incredibly simplistic nature of this question but I am having
This has to be incredibly simple, but I must not be looking in the
I'm sure this is incredibly simple for somebody, but I am failing to grasp
I have an incredibly basic question, but searching for it in the docs has
I need to redirect /search?keywords=somesearchterm to /search/somesearchterm This seems incredibly basic but I've been
This is not a question, but just a rant. Or maybe a question... or

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.