我開始研究一個ipad應用程序,該應用程序需要詳細視圖上的活動(或函數),並將推送(或轉移)到另一個視圖控制器取決於點擊的按鈕。如何在uisplitviewcontroller上使用segue推送到另一個視圖控制器(詳細視圖)
試圖找出是否segue是我應該用這個。
我的故事板是這樣的:
SplitViewController -> navigationcontroller(master view)/login (detail view) -> dashboard (will be transferred on successful login
但whenver我點擊按鈕,成功登錄它會給我這個錯誤:
Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
的思考?
編輯:代碼推到下一個視圖 - 控制
- (IBAction)btnSubmit:(id)sender {
User *user = [[User alloc] init];
user.email = self.txtEmail.text;
user.rawPassword = self.txtPassword.text;
if(user.isValid){
[self performSegueWithIdentifier:@"LoginSuccess" sender:self];
}
}
在這裏顯示您的代碼 –
更新了問題 – gdubs