ios - change the color of the button on click and off click -


enter image description here

every time user click 1 of above buttons new view controller displaying,i have green colored icon , black colored icon well. functionality need click on of these buttons make others black , clicked 1 cyan color. not able know how do this. buttons have delegates called or what. please suggest me right method.

set selected image , deselected image in attribute inspector.

enter image description hereenter image description here

then set below property uibutton.

selectedbutton.isselected = true normalbutton.isselected = false 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -