隐藏navigationBar下面的线
UIImageView *imageView = [self findHairlineImageViewUnder:self.navigationController.navigationBar];
imageView.hidden=NO;
- (UIImageView*)findHairlineImageViewUnder:(UIView*)view {
if([viewisKindOfClass:UIImageView.class] && view.bounds.size.height<=1.0) {
return(UIImageView*)view;
}
for(UIView*subviewinview.subviews) {
UIImageView*imageView = [selffindHairlineImageViewUnder:subview];
if(imageView) {
returnimageView;
}
}
return nil;
}