if([TabBarController.moreNavigationController.topViewController.view isKindOfClass:[UITableView class]]){
//
UITableView * moreView = (UITableView*)TabBarController.moreNavigationController.topViewController.view;
if([[TabBarController.moreNavigationController.topViewController.view subviews] count]){
for (UITableViewCell * cell in [moreView visibleCells]) {
cell.backgroundColor = [UIColor clearColor];
cell.textLabel.textColor = [UIColor clearColor];
}
}
//
UIView * newView = [[UIView alloc] initWithFrame:CGRectMake(0,0, 320, 367)];
UIImageView * imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"service1.png"]];
imageView.opaque = NO;
imageView.alpha = 1;
[newView addSubview:imageView];
TabBarController.moreNavigationController.topViewController.view.backgroundColor = [UIColor clearColor];
TabBarController.moreNavigationController.topViewController.view.frame = CGRectMake(0, 0, 320, 367);
[newView addSubview:TabBarController.moreNavigationController.topViewController.view];
TabBarController.moreNavigationController.topViewController.view = newView;
}
访问navigationbar的方法
TabBarController.moreNavigationController.topViewController.navigationItem