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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -