I am trying to add two right buttons to the navigation bar. I tried adding using following ways but I get SIGABRT
self.navigationController.navigationBar.items = navItemsArray;
self.navigationItem.rightBarButtonItems = navItemsArray;
navItemsArray
has two buttons of type UIBarButtonItem
.
Can anyone help with this? I can't figure out what is wrong.
On your Mac, use Dock & Menu Bar System Preferences to change the appearance of the Dock, and to select items to show in the menu bar and in Control Centre. To change these preferences, choose Apple menu > System Preferences, then click Dock & Menu Bar .
self.navigationItem.rightBarButtonItems = navItemsArray;
works only in iOS 5.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With