Note that there are some explanatory texts on larger screens.

plurals
  1. POApp freezes when scrolling in tableview
    primarykey
    data
    text
    <p>My app freezes when scrolling in tableview. It loads the data, but when I try to scroll, the app freezes immediately. What is the problem? My cellforrowatindexpath method is:</p> <pre><code>if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"MyCellView" owner:self options:nil]objectAtIndex:0]; } getDats *gDatas=[[[getDats alloc]init]autorelease]; gDatas=[self.bookmarks objectAtIndex:indexPath.row]; const char *prior = "High"; const char *prior1 =[gDatas.Priority UTF8String]; if (strcmp(prior1 , prior) == 0) { NSString *imagePath = [[NSBundle mainBundle]pathForResource:@"highPriority" ofType:@"png"]; cell.imageView.image = [UIImage imageWithContentsOfFile:imagePath]; } [cell.MOwner setText:gDatas.WhatId]; [cell.DueDate setText:gDatas.EndDateTime]; [cell.theTextLabel setText:gDatas.Subject]; [cell.Descri setText:gDatas.Desc]; [cell.TaskId setText:[NSString stringWithFormat:@"%d" , gDatas.rowId]]; cell.backgroundView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; return cell; </code></pre> <p>and the debugger shows:</p> <blockquote> <p>-[__NSCFString Priority]: unrecognized selector sent to instance 0x7341790 2012-07-09 10:23:46.761 MeetingMaker[716:207] <strong>* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString Priority]: unrecognized selector sent to instance 0x7341790' *</strong> First throw call stack: (0x1cbf052 0x2152d0a 0x1cc0ced 0x1c25f00 0x1c25ce2 0xf449 0x4e7e0f 0x4e8589 0x4d3dfd 0x4e2851 0x48d301 0x1cc0e72 0x29492d 0x29e827 0x224fa7 0x226ea6 0x2c037a 0x2c01af 0x1c93966 0x1c93407 0x1bf67c0 0x1bf5db4 0x1bf5ccb 0x2656879 0x265693e 0x44ea9b 0xe0c2 0x1e15) terminate called throwing an exception(gdb) .</p> </blockquote> <p>The app shows an error on line:</p> <pre><code>const char *prior1 =[gDatas.Priority UTF8String]; </code></pre> <p>and shows </p> <blockquote> <p>Thread:Program received signal SIGABRT . </p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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