Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS rotation makes views move off screen
    primarykey
    data
    text
    <p>I have a iPhone app that supports both portait and landscape orientations. When I rotate one of the views for the first time all of the subviews move to the left until they are half way off the screen. If I use the tab bar to switch views and come back to the broke view it displays just fine. After I do this I can rotate the broken view and it will look just how I want. None of my other views do this. Has anyone else encountered this problem? How did you fix it?</p> <p>When I rotate I get the following error:</p> <blockquote> <p>Break on objc_exception_throw to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. 2013-06-14 08:48:17.847 ManageMyTVs[1525:c07] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "NSAutoresizingMaskLayoutConstraint:0x9e96330 h=--&amp; v=--&amp; H:[UITableViewCell:0x9ed85f0(0)]", "NSLayoutConstraint:0x9ed9310 UITableViewCell:0x9ed85f0.trailing == UILabel:0x9ed8ea0.trailing + 20", "NSLayoutConstraint:0x9ed92d0 H:[UILabel:0x9ed8a50]-(NSSpace(8))-[UILabel:0x9ed8ea0]", "NSLayoutConstraint:0x9ed90f0 UILabel:0x9ed8a50.leading == UITableViewCell:0x9ed85f0.leading" )</p> <p>Will attempt to recover by breaking constraint NSLayoutConstraint:0x9ed92d0 H:[UILabel:0x9ed8a50]-(NSSpace(8))-[UILabel:0x9ed8ea0]</p> </blockquote> <p>I can't delete these constraints it is complaining about because they are the default ones xcode adds. Even when I delete the offending views the issue remains.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload