Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to change colour of text after reading details?
    text
    copied!<p>am doing my projects using iphone, where i list a number of events in <code>uitableview</code>(masterview) and i will display details in <code>viewController</code>(detailview). i display a text in tableview as green colour, after reading details a data inside a cell should turn red colur. to notify it as read and unread. how to do it? pls help me. here is my cellforrowindexpath </p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"newsCell1"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } MainNews *msglist = [samplearray objectAtIndex:indexPath.row]; cell.textLabel.text = msglist.newsletters; cell.textLabel.textColor = [UIColor greenColor]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; return cell; } </code></pre> <p>and here is my didselectatrowindexpath code:</p> <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"NewsDetails"]) { NSIndexPath *indexPath = [tblView indexPathForSelectedRow]; MainNewsDetailController *destViewController = segue.destinationViewController; MainNews *aEvent1 = [samplearray objectAtIndex:indexPath.row]; destViewController.eveID = aEvent1.id; destViewController.usrid = memberid; } } </code></pre> <p>so how to change colour in tableview after reading details . pls help me thanks in advance</p>
 

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