Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiple View Controllers. Is there a maximum?
    text
    copied!<p>I am putting an iPad application together that allows a user to work their way through a virtual tour. They are able to move forward through screens on which some will have buttons to other material such as a video or more info.</p> <p>If Keynote supported Hyperlinks then it would be well suited but as it doesn't I am trying to recreate the tour within Xcode.</p> <p>I am a newbie but have spent time researching and have code to display the 'slides' and the capability to move forward and back through them. The slides are no more that an image view with a full screen graphic and buttons for the various options, some slides are simple and have nothing other than back and forward but others will have additional links</p> <p>However doing it in this simplistic way means I am ending up with a huge number of view controllers and XIB files, currently at 75 which I know must be more than any app should have. However it does work although on occasions when running it on the device and not in the simulator it will bomb out.</p> <p>My questions are is there a limit to the number of view controllers in one app and will having a large number cause the instability? I'm aware of other ways to handle the views such as having them in arrays and pushing them out a single view controller but this won't give me the flexibility to tailor slides for different content.</p> <p>I'd welcome any help or advice and I hope have gone about posting this question in the right way (its my first)</p> <p>Many Thanks Kieron</p> <p>The code I am using to manipulate the view is</p> <pre><code>-(IBAction)goBack { [self dismissModalViewControllerAnimated:NO]; } -(IBAction)goForward { Slide5ViewController *screen = [[Slide5ViewController alloc] initWithNibName:nil bundle:nil]; screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController:screen animated:YES]; [screen release]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload