ko1o / PYSearch

🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
MIT License
3.83k stars 752 forks source link

导航栏 #85

Open HTOne opened 7 years ago

HTOne commented 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>.

ko1o commented 7 years ago

@HTOne 这是你使用问题 UINavigationController 不能modal出一个控制器