我正在使用下面的代碼返回到我的登錄視圖。該視圖加載正確,一切都很好。所有按鈕的工作等使用presentViewController後無法找到現有的segues
JALoginViewController *loginVC = [[JALoginViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:loginVC];
navigationController.modalPresentationStyle = UIModalPresentationFormSheet;
[self.navigationController presentModalViewController:navigationController animated:YES];
但是,如果用戶嘗試再次登錄時,可將他們帶到下一個場景的SEGUE無法找到。
我使用performSegueWithIdentifier如果用戶的登錄憑據是正確的,就像這樣:
[self performSegueWithIdentifier:@"loginSegue" sender:self];
這是我收到的錯誤:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<JALoginViewController: 0x8d614b0>) has no segue with identifier 'loginSegue''
我已經做了很多在谷歌搜索的並通過文件解決這個問題,我得到的衣櫃(至少我認爲)是this question。解釋和解決方案聽起來像他們可能是正確和相關的,但我不能把它們付諸實踐。
文件我已經閱讀並嘗試:
popToRootViewController - 當前根視圖控制器是一個標籤欄 - 不登陸的場景,我需要這麼遠我知道我可以不用這個。
pushViewControl - 該工程的效果,我不認爲它雖然是正確的方法。我不希望那裏有導航欄,我不希望我的標籤欄在用戶返回到登錄場景時出現。
我已經嘗試了有限/無效的各種方法。在這個階段,任何幫助將不勝感激。
如果我沒有提供足夠的信息,請讓我知道。
感謝
JA
編輯 - 縮小故事板
圖像[故事板的縮小圖像] [1]
您問您是否可以提供更多信息:故事板的縮小版本(shift-command-4拍攝快照)可能會有所幫助。 – Rob 2013-04-24 13:23:47
根據要求我添加了縮小的圖像。正確的方框突出了我和我想返回的位置。 – Jim 2013-04-24 13:40:24