iOS navigation bar item image size

user2053760 picture user2053760 · Mar 24, 2014 · Viewed 92.1k times · Source

I want to customize my NavigationBar button and using my own images.

The question is what the size should be?

I found that the button size should be 40*40, so the image should be 80*80 for retina?

Answer

Suragch picture Suragch · Nov 16, 2015

These are the sizes that the documentation recommends for custom icons now.

enter image description here

  • @2: 50 x 50
  • @3: 75 x 75

Create two images of the above pixel sizes and then add them to a new image set in your Assets.xcassets file. (Apparently the @1 size is no longer needed.)

enter image description here

Alternatively, you could use a universal vector image (pdf) (see here and here). This has been my preference recently.

Related answer