Mam następujące (uproszczone) hierarchii: UINavigationController -> UIViewController -> UITableViewController
. Chciałbym ukryć pasek nawigacji po przewijaniu widoku tabeli przy użyciu hidesBarsOnSwipe
. Teraz dzieje się tak, że pasek nawigacyjny ukrywa się za każdym razem, gdy przewijam w dół, ale nie pojawia się ponownie po przewinięciu w górę. Tak wygląda mój kod:hidesBarsOnSwipe dla childView
// Create a navigation controller and set as root view controller
// Enable hidesBarsOnSwipe
UINavigationController *navigationC = [UINavigationController new];
self.window.rootViewController = navigationC;
navigationC.hidesBarsOnSwipe = YES;
// Create a view controller to act as parent for the table view
UIViewController *parentVC = [UIViewController new];
[navigationC pushViewController:parentVC animated:NO];
// Create the table view controller
UITableViewController *tableVC = [UITableViewController new];
tableVC.tableView.dataSource = self;
// Add the table view as a subview to the parent view controller
[parentVC addChildViewController:tableVC];
[parentVC.view addSubview:tableVC.tableView];
[tableVC didMoveToParentViewController:parentVC];
czy otrzymałeś rozwiązanie tego problemu? –
Interesuje Cię, czy to też zostało rozwiązane. –