iphone - UIBarButtonItem with image and bordered -
how possible have http://www.nutsaboutmac.com/wp-content/uploads/2012/11/sharelinktofacebook.png
until now, i've put same background image navigationbar , barbuttonitem. problem button no longer bordered, can't difference between navigationbar , button anymore...
uiimage *image = [uiimage imagenamed:@"facebook_texture.png"]; [cancelbutton setbackgroundimage:image forstate:uicontrolstatenormal style:uibarbuttonitemstylebordered barmetrics:uibarmetricsdefault]; [topbar setbackgroundimage:image forbarmetrics:uibarmetricsdefault];
how can change background keep bordered style ?
you can't set custom bg image. border bg image , either own or system.
=> no way making own image
edit: thought describe use tinting: barbutton.tintcolor=color
, supply color either alpha or pattern image made colorwithpatternimage
but... tinting clear color or pattern doesn't work. bug in sdk imo => no way making own image
Comments
Post a Comment