I am using uiKit framework.
I am using stack view and inside that are buttons, and data of that buttons is coming from server. I want that when i receive data, first button in stack view will be selected by defalut and the color changes.
can anyone help please?
2
Answers
You need to get the first view that is a UIButton and then set his
selected
property totrue