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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -