I have 2 scroll views. I put many buttons onto the first scroll view. When I click one button in the first scroll view, related buttons fill the second scroll view.
I want the buttons in the first scroll view to have the effect as if they are segment control. i.e. when one button is clicked, its image becomes dim and can’t be clicked again until other buttons in the first scroll vew are clicked.
How to achieve this? any sample code is appreciated! thanks!
Can’t you just keep track of which button was last clicked, and reset that one to be in the active state, and set the one you’re now clicking to the inactive state? Just create a property, lastClicked, and do this: