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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:49:25+00:00 2026-05-29T22:49:25+00:00

creating 20 viewcontrollers and calling them one after the other from the mainviewcontroller as

  • 0

creating 20 viewcontrollers and calling them one after the other from the mainviewcontroller as views using perform selector method with some delay.

 - (void)displayviewsAction:(id)sender {

FirstViewController *viewController = [[FirstViewController alloc] init];    
viewController.view.frame = CGRectMake(0, 0, 320, 480); 
[self.view addSubview:viewController.view];
[self performSelector:@selector(secondViewController) withObject:nil afterDelay:11];  
}


-(void)secondViewController {

SecondViewController *secondController = [[SecondViewController alloc] init];
secondController.view.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:secondController.view];
 [self.view addSubview:toolbar];

[self performSelector:@selector(ThirdviewController) withObject:nil afterDelay:27];

[secondController release];
}

My question is that loading these many viewcontrollers as views from the mainviewcontroller one after the other using the perform selector method is acceptable or there will be any memory issues.

Please advice.

  • 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-29T22:49:29+00:00Added an answer on May 29, 2026 at 10:49 pm

    there wont be any memory issues if yiu release it properly but, there are some interactions, such as rotaion etc wont work for the added view controllers(as views). which will make you to manage it yourself, that woul be tedious, and i personally think its a worst thing to do.

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

Sidebar

Related Questions

I am new to iphone development.. am creating one small application where two viewcontrollers
(creating a separate question after comments on this: Javascript redeclared global variable overrides old
I am creating 2 buttons programmatically in my view. Both selector methods exist but
I'm creating a custom ViewController. This VC needs to load some data that is
I'm creating an application whose main screen can consist of one of three Scenarios.
I'm creating an app using a UITabBarController as the main form of navigation, having
I use a UINavigationController with several viewcontrollers. One of the viewcontrollers, which is constructed
I need to call a method in the viewcontroller that creates a popupviewcontroller, from
I'm programmatically creating a tab bar based app. In the application:didFinishLaunchingWithOptions (app delegate) method
I am creating an iPad as in the link . In this one I

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.