I have the following issue in my iPhone app.
I have 4 buttons in my IB also linked to my UIViewController
(IBOutlet
)
When I for example hide the second
maybe there is a solution with autoLayout in IB but I'm not sure about that. Programmatically you can add all your button to an array in order. and whenever you hide a button or not you loop trough the array of button and each time you find one that is not hidden you set the y coordinate on the frame to a a value and you increment this value by what you need so the next not hidden will be placed according to the last position used.