最近,我已將iPhone升級到iOS 10.在iPhone上安裝我的應用後,我發現當我在我的應用中使用tableView時,它肯定會崩潰。我在診斷表單中的方法cellForRowAtIndexPath
和選定的殭屍對象中創建了一些斷點。但消息[CFString release]: message sent to deallocated instance 0x17063b960
總是出現在Debug區域。此問題僅在iOS 10 Beta上出現,我不確定iOS 10 Beta是否會引起此問題。有沒有人像我一樣遇到這個問題?我會感激。iOS 10 [CFString發佈]:發送到已釋放實例的消息
更新:
當返回cell
,碰撞將出現:Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
和Thread 1: signal SIGKILL
相關的代碼:
的UITableViewCell *細胞;
HKLoadingModel * model = [self modelForTableView:tableView];
ShopServiceType type = model == self.carwashLoadingModel ? ShopServiceCarWash : ShopServiceCarwashWithHeart;
JTShop *shop = [model.datasource safetyObjectAtIndex:indexPath.section];
NSArray * serviceArray = [self filterShopServiceByType:type andArray:shop.shopServiceArray];
NSInteger serviceAmount = serviceArray.count;
NSInteger sectionAmount = 1 + serviceAmount + 1;
if(indexPath.row == 0)
{
cell = [self tableView:tableView shopTitleCellAtIndexPath:indexPath];
}
else if (indexPath.row == sectionAmount - 1)
{
cell = [self tableView:tableView shopNavigationCellAtIndexPath:indexPath];
}
else
{
cell = [self tableView:tableView shopServiceCellAtIndexPath:indexPath andShopService:serviceArray];
}
return cell;
請發佈任何相關代碼,crashlog等 –