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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:24:48+00:00 2026-06-01T12:24:48+00:00

The application which runs smoothly on 4.0.1 when was tried on run on 4.2.1

  • 0

The application which runs smoothly on 4.0.1 when was tried on run on 4.2.1 produced distorted screen i.e., screen somewhat moved to left by 20%. Phones on which iOS 4.0.1 and 4.2.1 are installed are 2 different phones. What could be the problem?

We observed that wherever we have added as subview this problem is occurring.

Thanks,
Satish

  • 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-01T12:24:49+00:00Added an answer on June 1, 2026 at 12:24 pm

    From your description, I think it is either that you are not setting the correct view.autoresizingMask properly or there is a subtle change in how views are being laid out.

    Try setting the frame of the view that moved explicitly and see what happens.

    [view setFrame:CGRectMake(0, 0, 320, 460)]
    

    Some related piece of code and/or screenshots would definitely help. Also, is it a UIKit application or a Cocos2D game?


    EDIT: Since you can’t provide code (or a stripped-down example version) I’ll just post some code that I’ve been using.

    Usually when I add subviews to “fill” a parent view, I had do the following:

    UIView *parent = nil; // find parent view
    UIView *child = nil; // child view to add to parent
    
    [parent addSubview:child];
    
    CGRect frame = [parent frame];
    frame.origin.x = 0;
    frame.origin.y = 0;
    [child setFrame:frame];
    

    If you have done that and it still does not work I believe the problem might lies somewhere else (i.e. have you overridden layoutSubviews by any chance? or was the phone jailbroken?)

    I highly doubt it’ll be a UIKit bug though but it is totally possible.

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

Sidebar

Related Questions

I have created several websites that run from ISAPI dll's, which runs smoothly in
I had an rcp application which runs for only first run, when a user
We have a WinForms application which runs on a touch-screen on a bit of
Given a Cocoa application which runs on Mac OS X 10.7 and later: What
I have written a application which runs in the background. I want to write
I have an application which runs a tool that requires network connection. Now my
I am porting an application which runs as a background service in windows at
I have an application which runs multiple threads. I use MadExcept to catch errors
I have a client application which runs as a Java applet from a user's
I want to create a simple server application which runs on the desktop, and

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.