0

How do you make a UIBarButtonItem like the one Facebook uses for their Navigation? I've tried to search and create an image, but I just can't get it to look right. Here's an example of the button I'm trying to make: Change the width of an UIBarButtonItem and What's the best way to develop a sideswipe menu like the one in Facebook's new iOS app?

Any help appreciated and thanks in advance.

Community
  • 1
  • 1
VTS12
  • 452
  • 8
  • 22

1 Answers1

1

You can create an image that just has the three lines - or rectangles. It should be pretty simple to design. You could even do it in Preview. UIBarButtonItem just uses the alpha channel.

Then init your UIBarButtonItem with custom image and it should look like that.

Mundi
  • 79,884
  • 17
  • 117
  • 140
  • when i do that the image background is a different color and doesn't really blend into the navbar – VTS12 Dec 28 '11 at 20:43
  • 1
    Make sure the only alpha is the rectangles. The image background should be transparent. The nav bar will shine through as expected. – Mundi Dec 28 '11 at 20:44
  • created the icon in preview and did as you said. works great and thanks for your help =D – VTS12 Dec 28 '11 at 21:04