objective c - iPhone Buttons Question -


once tap button, default highlight color blue. how can change highlight color of button. either in interface builder or code.

in ib when select button attributes of uibutton choose "highlighted state configuration" (instead of "default state configuration") , select image background.

or in code: [mybutton setbackgroundimage:[uiimage imagenamed:@"imagename"] forstate:uicontrolstatehighlighted];

so rather set image, set color.

you might want code examples of creating custom uibutton ([uibutton buttonwithtype:uibuttontypecustom]), using uiimage's stretchableimagewithleftcapwidth:topcapheight: instance method.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -