Open linwdav opened 10 years ago
Yes, it is related. You've specified Auto Layout constraints, but you've over constrained the view, which means that it's impossible to satisfy the constraints when the height changes. For example, if you specify a constraint on the top margin, height, and bottom margin, then if the height of the parent view changes, it can't satisfy all three of those constraints. You're running into this problem because you designed for a 4" screen, but ran it on a 3.5" simulator. We cover Auto Layout during the class.
I implemented the tip calculator with a settings view. One problem I had was that the line separator using the View object did not show up. Not sure if this is related, but I am also getting the following message in the console
2013-12-11 01:23:06.581 tipcalculator[13212:11303] 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)
/cc @nesquena @timothy1ee