Does anyone know of any good books or resources (other than the Apple documentation) that explains layout constraints in a way that novices will easily grasp?
The book I am using was written before these were introduced, and it is driving me up the wall trying to replicate what the book takes for granted or does with seemingly comparative ease under the old approach.
Turning layout constraints off now (a check box I have only just spotted), doesn't seem to reset everything back to where it would have been if I had not being using layout constraints from the start. I don't want to start again because I have several chapter's worth of work built up from the book I am following.
In particular, it isn't obvious to me how to create constraints between a view and the superview if they haven't appeared automatically. My understanding is that you select the two things that need a connection with each other and then select the appropriate constraint. However, the superview doesn't seem to be something you can select.
When I run my app in the simulator as a Retina Display 3.5inch, it works fine, but when run on my iPhone 5, there is a white gap at the bottom of the screen because the top level view isn't resizing properly. Turning layout constraints off doesn't fix this, even though the prevailing autosizing settings seem fine to me.
This is driving me mad - I'd be grateful for any advice. I'm sure when the next edition of my book is released this will be dealt with, but in the meantime I'm finding it hard going.
The book I am using was written before these were introduced, and it is driving me up the wall trying to replicate what the book takes for granted or does with seemingly comparative ease under the old approach.
Turning layout constraints off now (a check box I have only just spotted), doesn't seem to reset everything back to where it would have been if I had not being using layout constraints from the start. I don't want to start again because I have several chapter's worth of work built up from the book I am following.
In particular, it isn't obvious to me how to create constraints between a view and the superview if they haven't appeared automatically. My understanding is that you select the two things that need a connection with each other and then select the appropriate constraint. However, the superview doesn't seem to be something you can select.
When I run my app in the simulator as a Retina Display 3.5inch, it works fine, but when run on my iPhone 5, there is a white gap at the bottom of the screen because the top level view isn't resizing properly. Turning layout constraints off doesn't fix this, even though the prevailing autosizing settings seem fine to me.
This is driving me mad - I'd be grateful for any advice. I'm sure when the next edition of my book is released this will be dealt with, but in the meantime I'm finding it hard going.
Last edited: