In my iOS application, I’m using custom NavigationItem (added to root view from Nib file). For default NavigationItem I can use
[self.navigationController setNavigationBarHidden:YES animated:YES];
to hide them, but I didn’t find any way to hide my custom NavigationItem or removeFromSuperview, could somebody please kindly show me some pointers?
Thanks in Advance!
with
[self.navigationController setNavigationBarHidden:YES animated:YES];you hide the complete navbar and not only thenavItem. As far as i understand you added thenavitemas a subview. You have to keep some kind of reference to theUIVvieweg. with a property or a tag and then remove/hide thenavItem.Since you just hide the navBar it is still there. So you can move you views with their frame property.
So I guess you it is enough to move the content views and skip the hiding / removing at all.