As all the icons are of same size, you can manage this through code which is generic to all device resolutions. A small calculation would help.
In this case,
let x = screenwidth (or UIView)
y = width of the icon (36 here)
a = space between superview and first icon (Leading Space)
b = space between last icon and super view (Trailing space)
First add width and height constraints to all the icons so that the width is constant.
Now add horizontal spacing constraints from 2nd button to 1st button (d), 3rd button button to 2nd button(d), 4th button to 3rd button(d) and so on till 6th button to 5th button(d) and give these constraints.constants the below value programatically by creating nslayoutconstraint variables.
As the spacing should be same, all these spacing constraints will equal to on evalue, say d.
d + d + d + d + d = (x - 6y - a - b)
5d = (x - 6y - a - b)
d = (x - 6y - a - b)/5