ios - change the color of the button on click and off click -
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
.
then set below property uibutton
.
selectedbutton.isselected = true normalbutton.isselected = false
Comments
Post a Comment