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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:06:43+00:00 2026-06-12T08:06:43+00:00

I am using in my app the view size to position a subview in

  • 0

I am using in my app the view size to position a subview in code.

for example like this:

self.view.bounds.size.height

This subview has to be animated in and out of the view.

This has worked perfect on older devices, now I am trying to support iphone 5 and found out that I still get the height of the old devices.
Everything except this animated view adapts perfect for iphone 5.

The only way to get the right size is if I change the size of the view in the xib, downside is
that if I now run my app on iPhone 4 the view size is the 4inch view size.

What is the problem here?
Or is this the way it is supposed to be and I have to create an extra xib file for iPhone 5?

  • 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-06-12T08:06:45+00:00Added an answer on June 12, 2026 at 8:06 am

    Alright so the answer is the following:

    Like @mrwalker said make sure that the view automatically or programmatically resizes.

    And be aware of the fact that the view is not yet resized in the viedDidLoad method.
    (This was my mistake)

    If you need the resized views size do your stuff in viewWillAppear there the view has already the right size.

    thanks to @mrwalker and @AndyDev

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

Sidebar

Related Questions

In my app I have been using page and form modal view controllers like
In my ASP.net MVC App (using Razor views) I have a ProductDetails view. This
I am building an app using storyboard. I have added a table view to
I am using GWT to write a simple app. Ive divided the view into
I am creating a app in android. In that i am using list view.
I'm using App Engine, SDK 1.6.3 with Python 2.7. I've created a model like
I'm using Apple's sample code for having separate Portrait and Landscape view controllers (presenting/dismissing
I'm creating android app using Titanium mobile. How do I create this interface using
I am trying to watch videos in my iphone app using the following code:
I had developed an album app in which I am using grid View. 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.