IOS 5 UINavigationBar removing subviews ( image subview) removes navigation bar?

You could make your added views subclasses of their respective UIKit classes and check against those specific subclasses. Really though, to have the clearest, most readable code, you should subclass the navigation controller and navigation bar to allow for a custom image and label to be drawn such that you could simply set the background image and foreground label to nil. It would take a little time to put together, but the end result would be much more extendable.

SetTag for those image and uilabel then removing it from code above did the trick. For(UIView* view in self. NavigationController.navigationBar.

Subviews) { if(view. Tag == 9 || view. Tag == 99) { view removeFromSuperview; } }.

Yes, this will technically work, but your code becomes significantly less understandable if you or someone else needed to come back to it later. You run the risk of not being able to effectively read and keep track of what your code is doing. At the very least make those tags constants to help see what you are removing.

– RPeck Oct 17 at 17:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions