How do I have 2 leftBarButtonItems in the iPhone app and 1 is the default back button?

I would like 2 leftBarButtonItems, but leave one of the elements as the default back button for navigation controllers. I have installed:

self.navigationItem.leftBarButtonItems = [NSArray arrayWithObjects:archives, ???, nil]; 

where the archives is the UIBarButtonItem that I created but donโ€™t know how to include the default back button in the array. Any suggestions?

+6
source share
1 answer

Verify that leftItemsSupplementBackButton set to YES.

 self.navigationItem.leftItemsSupplementBackButton = YES; self.navigationItem.leftBarButtonItems = [NSArray arrayWithObjects:archives, nil]; 
+19
source

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


All Articles