UIToolbar shadow color change for UIBarButtonItem

I draw a UIToolbarby changing the color of its hue and the color of the hue of its subframes UIBarButtonItem. I have a job, except that I cannot find how to change the shadow color from dark to light for individual elements of the bar panel (see Example, button elements on the panel look blurry):

dark instead of light shadow

How to change shadow UIBarButtonItemwith style UIBarButtonItemStylePlainto white? I uploaded a sample project here .

+5
source share
2 answers

The final solution was to add the quality buttons UIButtoncontained in UIBarButtonItemand include any shadows in PNG used for the image UIButton.

0

UIBarButtonItem 2 :

setBackgroundImage: : barMetrics:
.

- (void)setBackgroundImage:(UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics

UIToolBar:

setShadowImage: forToolbarPosition:
, .

(void)setShadowImage:(UIImage *)shadowImage forToolbarPosition:(UIToolbarPosition)topOrBottom

shadowImageForToolbarPosition:
, .

(UIImage *)shadowImageForToolbarPosition:(UIToolbarPosition)topOrBottom

, , UIBarButtonItem.
, .

0

All Articles