0

I am trying to create a UIToolbar which is dark black (real black as opposed to UIToolbar's "black"), that is slightly transparent or opaque. Below is a screenshot of the exact colour/opacity that I want it to be. Its the black overlay on top of the burger image.

I tried setting the colour, setting alpha, opaque property, translucent and nothing is working. Any suggestions?

Toolbar needed

darksky
  • 20,411
  • 61
  • 165
  • 254

1 Answers1

1

Just make a png that is the color and opacity you want, add it to your project, and [myToolbar setBackgroundImage:thatImage];

Oops actually I think the method is setBackgroundImage:forToolbarPosition:barMetrics:

geraldWilliam
  • 4,123
  • 1
  • 23
  • 35
  • If its just a solid black color you want, you can make the image a 1x1 black pixel and then make the image stretchable. – KDaker Sep 30 '12 at 19:42