I have created an app which is approved by apple and currently buyable in the appstore. But after the 4.3 update it crashes when scrolling the UITableView with the EXC_BAD_ACCESS error. NSZombieEnabled = YES, will get the app working again but this isn't a solution of course ;) The error is reported in the Main class on the following line:
int retVal = UIApplicationMain(argc, argv, nil, nil);
Also the stacktrace doesn't help me out either:
> #0 0x00faf09f in objc_msgSend ()
> #1 0x04c7b9e0 in ?? ()
> #2 0x00d6004c in CFRelease ()
> #3 0x00e42369 in -[__NSArrayM removeObjectAtIndex:] ()
> #4 0x00e3dcfc in -[NSMutableArray removeObjectsInRange:] ()
> #5 0x003507a5 in -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] ()
> #6 0x0034890c in -[UITableView layoutSubviews] ()
> #7 0x01d80a5a in -[CALayer layoutSublayers] ()
> #8 0x01d82ddc in CALayerLayoutIfNeeded ()
> #9 0x01d280b4 in CA::Context::commit_transaction ()
> #10 0x01d29294 in CA::Transaction::commit ()
> #11 0x01d2946d in CA::Transaction::observer_callback ()
> #12 0x00e2a89b in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
> ()
> #13 0x00dbf6e7 in __CFRunLoopDoObservers ()
> #14 0x00d87857 in CFRunLoopRunSpecific ()
> #15 0x00d87761 in CFRunLoopRunInMode ()
> #16 0x017371c4 in GSEventRunModal ()
> #17 0x01737289 in GSEventRun ()
> #18 0x002dec93 in UIApplicationMain ()
> #19 0x000026d4 in main (argc=1, argv=0xbffff068) at
> /Users/geoffrey/Documents/iPhone
> projecten/Xcode Projecten/HU
> Rooster/main.m:14
Can someone please help me out with this? I'm trying to get this working for 2 days now :(
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
cell = customCell;
self.customCell = nil;
}
int num = indexPath.row;
if (indexPath.section != 0) {
for (int i=1; i <= indexPath.section; i++) {
num = (num + [[sectorSize objectAtIndex:(i-1)] intValue]);
}
}
// Configure the cell...
cell.tijdLabel.text = [NSString stringWithFormat:@"%@ - %@", [tijdBeginList objectAtIndex:num], [tijdEindList objectAtIndex:num]];
cell.lesVormLabel.text = [lesVormList objectAtIndex:num];
cell.docentLabel.text = [docentList objectAtIndex:num];
cell.lokaalLabel.text = [lokaalList objectAtIndex:num];
cell.opmerkingLabel.text = [opmerkingList objectAtIndex:num];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}