I have a custom tab bar with my own images as buttons. The problem is adapting this for auto layout - I know to stick the leftmost and rightmost buttons to their respective sides but for the middle buttons I need them to be x * #of-button/total-buttons-minus-1.
So, for instance, if I have 4 total buttons across my tab bar, I need the second button to be 1/3 (minus half of its width, which is a separate issue) ways along the tab bar starting from the left side and the second button to be 2/3 of the way across the tab bar.
How can I program this without code using auto layout?
Below is an attached image that shows what I'm dealing with.
You have to make several simple steps:
https://i.sstatic.net/JqhrJ.png