执行searchBarSearchButtonClicked
时如何创建另一个视图控制器的segue?
答案 0 :(得分:1)
[self performSegueWithIdentifier: @"your segue identifier" sender: self];
方法调用searchBarSearchButtonClicked
。答案 1 :(得分:0)
-(void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
{
yourviewcontroller *name = [[yourviewcontroller alloc]initwithnibname@"yourviewcontroller" bundle:nil];
[self.navigationcontroller pushviewcontroller:name animated:YES];
}