I have been trying to customize a navigation bar in an iPhone app. I was trying to use a subclass of navigationbar and use the layout subviews method to actually manipulate the views that I required. Right now, I am getting the list of the subviews but I have no idea how to detect which subview is a barbutton or which is the title view. All I can see in their description is that it is a UINavigationItem and and some additional information.
Need some help on this!
Thanks!
If the goal is to manipulate the size of the title, I think you should instead set the
titleViewofUINavigationItem. This must be done in theUIViewControllerthat you push onto yourUINavigationController.If you don’t want to do this in every
UIViewControlleryou could make a base class that implements the feature and all yourUIViewControllers inherit from.