I am having an extremely tough time trying to understand how constraints and interface manipulation works.
Let's take the following scenerio.
I add in a button.
I erase the button text.
I select a custom image for the button.
I resize/scale the button in the Storyboard editor and add constraints so that it sticks to the bottom left of the screen. (universal device settings)
And I get misplaced errors telling me that the image is expected to be a certain x, y, height, width.
I try doing "update frame" to use my scales instead of the original image size but it doesn't do anything at all... the errors remain.
When I run the app, the image gets stretched back to its original size.
What am I missing? Why be able to scale it if it will just keep going back to its original size?
Thanks in advance for helping and answering!
If you need images of what the constraints/errors look like let me know.
Creating constraints for size is just as simple as spacing constraints—just control-drag across the object, starting and ending on it. You can also add an Aspect Ratio constraint to achieve what you're looking for.
Judging by your questions, though, maybe you should read the documentation about autolayout:
Xcode help:
Auto Layout Guide: