There is a new property of UIView: layoutMargin in iOS8.
In order to set the margins of a view programmatically:
self.view.layoutMargins = UIEdgeInsetsMake(0, 0, 10, 10);
Is it possible to set margins in Interface Builder?
There is a new property of UIView: layoutMargin in iOS8.
In order to set the margins of a view programmatically:
self.view.layoutMargins = UIEdgeInsetsMake(0, 0, 10, 10);
Is it possible to set margins in Interface Builder?
This can be achieved by setting a User Defined Runtime Attribute in the Identity Inspector:
Although Xcode does have a margins setting, as of 7.3 (7D175), it still doesn't have any effect, so you have to use the user defined attribute: