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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:44:56+00:00 2026-05-30T04:44:56+00:00

I have a app with a main viewcontroller that loads a first page viewcontroller.

  • 0

I have a app with a main viewcontroller that loads a “first page” viewcontroller. once the user has clicked a few buttons, I exchange the “first page: view controller for the second this way:

        [UIView transitionFromView:self.view toView:self.secondPageVC.view duration:1.0 options:UIViewAnimationOptionTransitionFlipFromRight completion:^(BOOL done ) {
            [self.view removeFromSuperview];
        }];

In order to do this I include the header file of the “next page” that is going to load and create a instance of that next page in the class of the current View controller.

All of this works fine until i get to the last page. One of the button combinations sends the user back to the first page. However when I try to include the header file of the first page in the last page, I get errors. What I think is happening is that each view controller class has an instance of the next page within its definition and when we get to the last page, adding an instance of the first page causes a loop that the compiler does not like. Can someone explain to me what I am doing wrong? If I am not supposed to use view controllers like this, how should I set up a game that has 10 pages that can loop back to the first page?

  • 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-30T04:44:57+00:00Added an answer on May 30, 2026 at 4:44 am
    1. Including in your .m instead of in your .h will solve your problem
    2. Look at UINavigationController
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a winforms app and the main (and only) form has several buttons.
I have an app that has a main view that acts as a view
i have a mvvm app that the main window is a tab control. i
I have an app that opens a non-modal form from the main form. The
I have a widget that supposed to call an Activity of the main app
I have a VB6 app. There is a main form. It houses a user
I currently have a simple iPhone app that loads a custom subclass of UIView.
I have my main app view controller (File's Owner), its First Responder, View, and
In my app I have a xib that has several viewcontrollers and xibs (with
Ok hopefully this is an easy question: I have a main viewcontroller that is

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.