Note that there are some explanatory texts on larger screens.

plurals
  1. POiphone: problem reloading table data
    primarykey
    data
    text
    <p>I am using custom label in table cell.everytime i visit again this page the label text getting more darker like it is behaving overwriting. how can i fix this?</p> <pre><code> - (void)viewWillAppear:(BOOL)animated { NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Note" inManagedObjectContext:context]; [request setEntity:entity]; [request release]; [self.tableView reloadData]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; } // Set up the cell... Note *noteItem = [resultController objectAtIndexPath:indexPath]; //[cell.textLabel setText:[noteItem noteTitle]]; //[cell.detailTextLabel setText:[dateFormatter stringFromDate:[noteItem creationDate]]]; [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; cell.accessoryView=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow.png"]]; UILabel *newLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, 200, 19)]; newLabel.text = [noteItem noteTitle]; [newLabel setBackgroundColor:[UIColor clearColor]]; [cell addSubview:newLabel]; [newLabel release]; UILabel *detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 20, 200, 26)]; detailLabel.text = [dateFormatter stringFromDate:[noteItem creationDate]]; [detailLabel setFont:[UIFont fontWithName:@"Helvetica" size:12.0]]; [detailLabel setBackgroundColor:[UIColor clearColor]]; [cell addSubview:detailLabel]; [detailLabel release]; [cell setBackgroundColor:[UIColor clearColor]]; [cell setAlpha:0.6]; return cell; } </code></pre>
    singulars
    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.
    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