hide tab bar in view with push

前端 未结 7 1691
离开以前
离开以前 2021-02-03 22:51

I have a tabBar + NavigationViewController. The Tab bar has collection view with cells(Say view1) and with cells a push seag

7条回答
  •  清歌不尽
    2021-02-03 23:13

    Use in 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;
        }
    }
    

提交回复
热议问题