If you're using struts and springs, set all your struts and springs to have a fixed distance to each edge and flexible width and height.
If you're using autolayout, pin the distance to each edge of your view. Also make sure the width and height of your view isn't pinned.
If the things I said didn't make sense, you have new keywords to search for.