0
我解釋一下情況: 我有一個NavigationController + TableViewController,當我點擊一個單元格時,我做了一個performSegueWithIdentifier去另一個視圖。我通過故事板完成了這個。導航控制器創建2個視圖而不是1
[self performSegueWithIdentifier:@"goToCamera" sender:self];
在這個視圖中,我需要推動包含攝像頭覆蓋的視圖。
[self.navigationController pushViewController:viewController animated:NO];
這工作得很好,但我的問題是,導航控制器似乎產生了2次,當我想回去TableViewController,我需要點擊2次,第一次按鈕的名稱爲「返回「和按鈕的名稱是第二次」 myTableView「
我注意到,當我設置動畫的attribut‘YES’,我得到這個錯誤信息:
nested push animation can result in corrupted navigation bar
這個問題似乎在同一時間有兩次推進但是它不在我的情況下出現。