Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationItem: Create a "nextBarButtonItem" (= rightBarButtonItem with arrow)

there are 3 Bar-Buttons in the UINavigationItem:

  • backBarButtonItem
  • leftBarButtonItem
  • rightBarButtonItem

But there is no "nextBarButtonItem" (= rightBarButtonItem with arrow). How can I create it? Do I need an own image with an arrow? How can I put the image in the rightBarButtonItem? Or is there a better way without image?

alt text

like image 545
Manni Avatar asked Dec 07 '25 09:12

Manni


2 Answers

The only way is to use a bar button item with a custom image with that next-button look, and set it as rightBarButtonItem. Apple doesn't provide any nextBarButtonItem functionality due to the way a navigation controller works.

If you look carefully at the Now Playing button in the iPod app it's also custom-designed.

like image 123
BoltClock Avatar answered Dec 10 '25 01:12

BoltClock


Check three20 library used to create Facebook app for iPhone.

https://github.com/facebook/three20

like image 21
Andriy Avatar answered Dec 09 '25 23:12

Andriy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!