IBMistake: On pins and needles

Patrick Sanders Uncategorized

New iOS developers often don't understand the differences between the different types of auto layout constraints, and overuse Pining when they should be using Align. The most common problem we see is using pinning in an attempt to center an object. Symptoms: Your object appears in the center in Interface Builder, but appears somewhere else in the simulator (or doesn't appear at all) You get a seriously ugly warning in the console when you run your app that looks something like: You see two pin constraints in your storyboard when …