Мой UITableView возвращает EXEC_BAD_ACCESS
, но почему!
Посмотрите этот фрагмент кода!
Загрузка UITableView работает нормально, поэтому allXYZArray != nil
и заполняется!
Затем прокрутка табличного представления к нижней части и резервное копирование приводит к сбою, так как происходит перезагрузка метода cellForRowAtIndexPath
Ошибка на линии:
"NSLog(@"allXYZArray::count: %i", [allXYZArray count]);"
(UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAt
IndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CellIdentifier";
UITableViewCell *cell = [theTableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
@try
{
if (allXYZArray == nil) {
NSLog(@"nil");
allXYZArray = [ToolBox getMergedSortedDictionaries:allXYZGiven SecondDictionary:allXYZSought];
}
NSLog(@"%i", [indexPath row]);
NSLog(@"allXYZArray::count: %i", [allXYZArray count]);