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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:29:42+00:00 2026-05-23T04:29:42+00:00

I am updating an iPhone app to an universal. I have different views controller

  • 0

I am updating an iPhone app to an universal.
I have different views controller with XIB files, all is working well when navigate between this views on portrait mode, when the actual view is switching to landscape the view resize perfectly.

But when the device stay on landscape and navigate to others views (xib), the new view open show like in portrait mode and didn’t resize and the view go out of the screen, and on the right part i can see a part of the last view. I think i am not using the right method to call a new view controller, looks like is created a new layer one over other.

So, is it a solution to switch views properly with auto resizing when the device is on landscape and portrait ?

More information about my project :

in my delegate :

UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:[[IntroViewController alloc] initWithNibName:@"IntroViewController" bundle:nil]];
[navController setNavigationBarHidden:YES];
[window addSubview:navController.view];
[window makeKeyAndVisible];

the method to call a view :

-(IBAction)actioncontact:(id)sender{
    Contactpage *listing = [[Contactpage alloc] initWithNibName:@"Contactpage" bundle:nil];
    self.contpage = listing;
    [listing release];
    [self.view addSubview:contpage.view];
    CATransition *animation = [CATransition animation];
    [animation setType:kCATransitionFade];
    [animation setSubtype:kCATransitionFromRight];
    [animation setDuration:0.25];
    [[self.view layer] addAnimation:animation forKey:@"transitionViewAnimation"];
}

Thank in advance for your answers.

  • 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-23T04:29:43+00:00Added an answer on May 23, 2026 at 4:29 am

    I found my problem the method was wrong, i used the present Modal and it works:

    -(IBAction)actioncontact:(id)sender{
    
    Contactpage *listing = [[Contactpage alloc] initWithNibName:nil bundle:nil];
    listing.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentModalViewController:listing animated:YES];
    [listing release];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TabBarController app with 4 views. I've put on all the 4
I am updating our iPhone app to iOs4 and I ran into an issue
I am updating a plist file using an iphone app but when i check
So i've got an iPhone app that i've finished updating with high resolution graphics.
I have an iPhone app that makes use of the AddressBook.framework and uses Core
Say I have two NSTimers in my iPhone app: timer1 and timer2 . timer1
My iPhone app creates PDF files (in Arial font). The plain iPhone 3.1.x version
i'm currently working on iphone app which has a web view. i'm pulling a
I'm currently using *.plist files for my iPhone app to store information that is
I'm working up a graphics effect for an iPhone app that simulates a low-res

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.