mio UITableView sta tornando EXEC_BAD_ACCESS
, ma perché!EXEC_BAD_ACCESS in UITableView cellForRowAtIndexPath
Vedere questo snippet di codice!
Caricamento del UITableView funziona bene, così allXYZArray != nil
ed è popolato!
Poi scorrendo la Tableview al fondo ed eseguire il backup cause il crash, come va di ricaricare il metodo cellForRowAtIndexPath
Fallisce on line:
"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]);
Puoi pubblicare il codice per il resto del metodo insieme a il codice per [ToolBox getMergedSortedDictionaries: SecondDictionary:]? – MrHen