Imagine a simple UIView like the blue full width container below. It contains a red box and a yellow box.
The red and yellow boxes are inset from the container by 10px (I know it doesn't look like it in the image. Forgive my rubbish artwork). I can achieve this by setting a Left constraint on the Yellow box in relation to the UIView (Blue) with a constant of 10.0.
However is this correct? Should I be using the LayoutMargins property or the XXXXMargin layout attributes? Many of the example I have seen simple offset from the left or right