Adding buttons to navigation bar ios
16,585
self.navigationItem.rightBarButtonItems = navItemsArray;
works only in iOS 5.
Author by
pa12
Updated on June 04, 2022Comments
-
pa12 almost 2 years
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 typeUIBarButtonItem
.Can anyone help with this? I can't figure out what is wrong.