UINavigationItem: create "nextBarButtonItem" (= rightBarButtonItem with arrow)

UINavigationItem has 3 buttons:

  • backBarButtonItem
  • leftBarButtonItem
  • rightBarButtonItem

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

alt text

+3
source share
2 answers

The only way is to use a panel button element with a custom image with this kind of next button and set it as rightBarButtonItem. Apple does not provide any features nextBarButtonItemdue to the way the navigation controller works.

" " iPod, .

+5
+1

Source: https://habr.com/ru/post/1783836/


All Articles