Open HTOne opened 7 years ago
// 5. Present a navigation controller UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:searchViewController]; [self presentViewController:nav animated:YES completion:nil];
改成 [self.navigationController presentViewController:searchViewController animated:YES completion:nil]; 报错 reason: 'Application tried to present modally an active controller <UINavigationController: 0x7ffd44832a00>.
@HTOne 这是你使用问题 UINavigationController 不能modal出一个控制器
改成 [self.navigationController presentViewController:searchViewController animated:YES completion:nil]; 报错 reason: 'Application tried to present modally an active controller <UINavigationController: 0x7ffd44832a00>.