I have created a Tab Bar controller which has Navigation Bar and a Table View. I set an image on the left side as Subview of navigation bar as below.
CGRect frame = CGRectMake(5.0, 5.0, 94.0, 33.0);
image = [ [UIImageView alloc]initWithImage:[UIImage imageNamed:@"topBarImage.png"] ];
image.frame = frame;
[navBar addSubview:image];
It works as expected to show. For certain reasons, in the second page of of Tab Bar, i don't want to show the image in Navigation bar, so i have to remove it only for the second page. I tried removing it from removeFromSuperview, but not working as expected. Can anyone tell me how to iterate all the subviews from navigation bar and remove the particular image view?