push的时候隐藏tab bar

在prepareForSegue方法中设置

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"showRecipeDetail"]) {
NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
RecipeDetailViewController *destViewController = segue.destinationViewController;
destViewController.recipeName = [recipes objectAtIndex:indexPath.row];

// Hide bottom tab bar in the detail view
destViewController.hidesBottomBarWhenPushed = YES;

}}

你可能感兴趣的:(push的时候隐藏tab bar)