Note that there are some explanatory texts on larger screens.

plurals
  1. POIphone app crashes with EXC_BAD_ACCESS error in iOS 4.3 but works fine on previous versions
    text
    copied!<p>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:</p> <pre><code>int retVal = UIApplicationMain(argc, argv, nil, nil); </code></pre> <p>Also the stacktrace doesn't help me out either:</p> <pre><code>&gt; #0 0x00faf09f in objc_msgSend () &gt; #1 0x04c7b9e0 in ?? () &gt; #2 0x00d6004c in CFRelease () &gt; #3 0x00e42369 in -[__NSArrayM removeObjectAtIndex:] () &gt; #4 0x00e3dcfc in -[NSMutableArray removeObjectsInRange:] () &gt; #5 0x003507a5 in -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] () &gt; #6 0x0034890c in -[UITableView layoutSubviews] () &gt; #7 0x01d80a5a in -[CALayer layoutSublayers] () &gt; #8 0x01d82ddc in CALayerLayoutIfNeeded () &gt; #9 0x01d280b4 in CA::Context::commit_transaction () &gt; #10 0x01d29294 in CA::Transaction::commit () &gt; #11 0x01d2946d in CA::Transaction::observer_callback () &gt; #12 0x00e2a89b in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ &gt; () &gt; #13 0x00dbf6e7 in __CFRunLoopDoObservers () &gt; #14 0x00d87857 in CFRunLoopRunSpecific () &gt; #15 0x00d87761 in CFRunLoopRunInMode () &gt; #16 0x017371c4 in GSEventRunModal () &gt; #17 0x01737289 in GSEventRun () &gt; #18 0x002dec93 in UIApplicationMain () &gt; #19 0x000026d4 in main (argc=1, argv=0xbffff068) at &gt; /Users/geoffrey/Documents/iPhone &gt; projecten/Xcode Projecten/HU &gt; Rooster/main.m:14 </code></pre> <p>Can someone please help me out with this? I'm trying to get this working for 2 days now :(</p> <pre><code>- (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 &lt;= 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; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload