我有一個tabBar應用程序與兩個選項卡。每個標籤都有自己的navigationController這種方式來實現:UINavigationController動畫
FirstViewController *firstController = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
UINavigationController *firstNavController = [[UINavigationController alloc] initWithRootViewController:firstController];
SecondViewController *secondController = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
UINavigationController *secondNavController = [[UINavigationController alloc] initWithRootViewController:secondController];
tabBar.viewControllers = [NSArray arrayWithObjects:firstNavController, secondNavController, nil];
當我要推一個視圖到一個選項卡我用這個:
[self.navigationController pushViewController:activityController animated:YES];
,當我在推看法,我想彈出我使用的視圖:
[self.navigationController popViewControllerAnimated:YES];
推動畫作品不錯,但在彈出動畫只有頂部欄(NavigationController)獲取動畫和視圖,而無需動畫消失。什麼可能是錯誤的?
你是從主線程調用它嗎? –
是的,我不知道我能做些什麼來使它工作 – sergiocg90