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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:42:49+00:00 2026-05-28T05:42:49+00:00

In order to switch between views in my iOS app, I have been using

  • 0

In order to switch between views in my iOS app, I have been using Modal View Controllers. It works fine, but is this bad coding practice? Will it be detrimental to the memory usage of my app?

In response to comments asking for more information, the views I am switching between are normal informational views. I am using three views to navigate through my app:

  • Main View: Has buttons to navigate to specific informational views
  • Info View: Has buttons to navigate to specific web pages for information
  • Web View: Displays information through a UIWebview

I have an improvised navigation bar at the top for navigating “back” and “home” do the main page.

Overall, this is a web app with structure provided with menus in other views. I don’t want to reveal what it does specifically (it’s my idea), however this should be enough information to work with.

I am currently switching between views like this:

newViewController *newView = [[newViewController alloc] init];
[self presentModalViewController:newView animated:YES];

Based on the answers so far, Modal Views are meant to quickly and temporarily display animations, but I am looking for a more permanent approach.

Is there a better way? Please provide example code with your response. Thank you!

EDIT: I apologize for originally not having enough information. I have posted a lot more information. If you need anything else, please comment.

  • 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-28T05:42:50+00:00Added an answer on May 28, 2026 at 5:42 am

    Using modal view controllers is usually reserved for times when you need to display a view temporarily, as when the ‘new message’ controller is presented by Apple’s Messages app. Another way to do what you want, which requires a little more setup, is:

    [self.navigationController pushViewController:newView animated:YES];
    

    A nice explanation outlining the difference between the two can be found here as well as questions on Stack Overflow here and here. A nice little tutorial on how to set up a UINavigationController can be found here, and a previous SO question here covers the topic of custom animations, while some source code provided here might also help you out. Phew. That’s a lot of links.

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

Sidebar

Related Questions

I have a navigation controller created programmatically to handle the switch between the views
I'm building a simple note taking app. In order to switch between notes (for
My app needs to switch between a couple of full screen views. These views
In order to debug an asp.net web app I have to have IE Script
We have a form and depending upon the circumstances we want to switch between
In Eclipse, I can switch through open editors using control-page up/down. This works great,
I have a script that needs to switch between various branches in my subversion
I have a script that needs to switch between various branches in my subversion
In order to improve my open source project, I need testers. I have created
I have a solution but it is one that I know is not 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.