Because the navigationItem.rightBarButtomItem is customized, it will occupy a big place and the title view won't be on the center.
For example, I want the "OMG" is located at the center between buttoms of "Home" and "Group". How to achieve this?
Because the navigationItem.rightBarButtomItem is customized, it will occupy a big place and the title view won't be on the center.
For example, I want the "OMG" is located at the center between buttoms of "Home" and "Group". How to achieve this?
make the title part of the navigationItem.rightBarButtomItem
, this seems to be the best way to make sure it is positioned correctly.
Change the rightBarButtonItem to Camera and Setting... and add Group Button as subview to the navigation bar.. do some trial and error to adjust the x position for the Group Button.... If you have fix titleView as "OMG" good.. if not then it will be little tricky to position the titleView with longer text but it can be done..