2014-11-03 61 views
0

欲使用新UISearchController和我下載由蘋果提供的對象 - 例如:UISearchController例如崩潰如果動畫= NO

https://developer.apple.com/library/ios/samplecode/TableSearch_UISearchController/Introduction/Intro.html

在APLMainTableViewController.m的123線,我們的方法中執行當我們在一個行中的實現代碼如下

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挖掘,我改變了「動畫:YES」到「動畫:NO」,應用程序將在下列情況下崩潰(我做了測試, iPhone 5s/iOS的iOS模擬器8)

  • 類型的東西在搜索框中,例如「iPod」的搜索結果的第一行
  • 自來水。這將推動iPod的詳細視圖
  • 現在點擊導航按鈕「<搜索」返回到搜索控制器
  • 表視圖顯示沒有搜索框,並與EXC_BAD_ACCESS
  • 應用程序崩潰

有人能重現了這個問題,並且知道爲什麼會發生這種情況?

編輯:蘋果的錯誤報告#18859420

回答

0

子問題:線132和133注中的iOS 8.0的bug。我怎麼知道這個bug已經解決了?

假設您已針對該問題在http://bugreport.apple.com處提交雷達,您可以通過雷達詢問ADC的狀態更新。

此外,請將編輯中的雷達編號報告給您的問題。