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
A better approach for above scenario - You dont need to set any autolayout or frames :)
Use UITableView
and create custom cell with UIButtons
in it.
Set UITableViewCellSelectionStyle
to None
Here your button background is same for all cell
Create an array with above button titles
When ever you want to hide buttons just remove it from array.