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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -