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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:09:09+00:00 2026-06-17T17:09:09+00:00

I have a view that contains a TableView , UIImage and a UIButton .

  • 0

I have a view that contains a TableView , UIImage and a UIButton. The UIButton is configured in the IB and located like this: self.camButton.frame = CGRectMake(0, 410,127,49); My problem is that the UIButton changes its location when I’m poping back to the first ViewController. On first load it’s located fine but when I’m coming back to the ViewController the button is located about 20 pixels up in the view. I’m trying to log the location fo the button so I got inside viewWillAppear:
NSLog(@"Bug Fixes: %f",self.camButton.frame.origin.y);
NSLog(@"Bug Fixes: %f",self.view.frame.origin.y);
But I’m always getting 410 and 0 on first load and when the button is misplaced. I’m playing around with the View location in other ViewControllers (while showing keyboard for example I push up the view) but I don’t think that’s what causing it because the view stays in the same location when I’m returning to the first ViewController

  • 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-17T17:09:11+00:00Added an answer on June 17, 2026 at 5:09 pm

    enter image description here

    you Need to set autoresizingMask

    self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    

    For more Information check this link

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

Sidebar

Related Questions

I have a hypothetical tree view that contains this data: RootNode Leaf vein SecondRoot
I have developed a small view that contains special char like 'é' and when
I have an ASP.NET MVC Partial View that contains a Html.TextBox that is configured
I have a view which contains a tableview, (i call this view the EquationView,
I have a View that contains a ParentModel, which contains 2 Models. I only
I have a view that contains two NSTextFieldCell s. The size at which these
I have a view model that contains a Product class type and an IEnumerable<
I'm developing an iOS 4 application. I have a main view that contains another
I currently have a product view page that contains an MVCContrib HTML Grid with
I have a view controller based app that contains several views that I display/hide

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.