This is for XCode 5, which has sane autolayout generation.
If I drag, say, an UIImageView into a UIIView and want it to be centered in it's superview. I CTRL-drag the UIImageView onto it's superview and then shift-select Center Horizontally in Container as well as Center Vertically in Container.
This creates two constraints for where the constants are set to the current horizontal and vertical offset of the UIImageView. I've never had a case where this is what I wanted. I then have to manually select each contraints, change the constant to 0, then trigger the view to update its frame.
Is there a way, with some keybind or a preference option, to make it so that I can create constraints that have a zero constant, instead of the view's current offset?
UIImageView
to center it within superview? There is "reset to suggested constraints" button which will set constraints correctly in that case – Azat