Tôi gặp phải lỗi này khi tôi gọi phương thức dismissView của mình. Đây là phương thức:'Đã cố gắng bật đến trình điều khiển chế độ xem không tồn tại.'
-(IBAction)dismissView
{
RootViewController *rootController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
[self.navigationController popToViewController:rootController animated:YES];
}
Điều đó sẽ hoạt động và tôi đã kiểm tra, rootController được khởi tạo và phân bổ. Bất kỳ ý tưởng?
cảm ơn, hoạt động trên trường hợp của tôi – tesmojones
nhanh chóng 3 thực hiện 'hãy _ = .popToViewController self.navigationController ((self.navigationController .viewControllers [1]) như HomeViewController, hoạt hình:?! True)?' –