Objective c 如果已设置动画=否,UISearchController示例将崩溃
我想使用新的UISearchController,我下载了apple提供的Obj-C示例: 在APLMainTableViewController.m的第123行,我们在点击tableview中的一行时执行了该方法Objective c 如果已设置动画=否,UISearchController示例将崩溃,objective-c,ios8,uikit,uisearchcontroller,Objective C,Ios8,Uikit,Uisearchcontroller,我想使用新的UISearchController,我下载了apple提供的Obj-C示例: 在APLMainTableViewController.m的第123行,我们在点击tableview中的一行时执行了该方法 123 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 124 APLProduct *selectedProduct = (
123 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
124 APLProduct *selectedProduct = (tableView == self.tableView) ?
125 self.products[indexPath.row] : self.resultsTableController.filteredProducts[indexPath.row];
126
127 APLDetailViewController *detailViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"APLDetailViewController"];
128 detailViewController.product = selectedProduct; // hand off the current product to the detail view controller
129
130 [self.navigationController pushViewController:detailViewController animated:YES];
131
132 // note: should not be necessary but current iOS 8.0 bug (seed 4) requires it
133 [tableView deselectRowAtIndexPath:indexPath animated:NO];
134 }
如果在第130行,我将动画:是更改为动画:否,应用程序将在以下情况下崩溃。我在iOS模拟器中对iPhone 5s/iOS 8进行了测试
在搜索框中键入内容,例如iPod
点击搜索结果的第一行。它将推送iPod详细视图
现在点击导航按钮<搜索以返回搜索控制器
表视图显示时没有搜索框,应用程序因EXC\u BAD\u访问而崩溃
有人能重现这个问题,并知道为什么会发生这种情况吗
编辑:苹果的缺陷报告18859420
子问题:第132行和第133行指出了iOS 8.0中的一个错误。我怎么知道这个错误是否已经解决
假设您已将雷达提交至,您可以通过雷达向ADC请求状态更新
此外,请在编辑您的问题时报告雷达号码