Note that there are some explanatory texts on larger screens.

plurals
  1. POFirst 3 cells are the same but turn correct once I start scrolling?
    primarykey
    data
    text
    <p>So Whenever I launch my app it looks like this and the first 3 cells are all the same. But once I start scrolling up and down it fixes and cell 2 and 3 show the correct information.</p> <p>This is currently how my code looks like:</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *CellIdentifier = @"MyFeedCell"; SampleTableCell *cell = (SampleTableCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { NSArray* topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"SampleTableCell" owner:self options:nil]; for (id currentObject in topLevelObjects) { if ([currentObject isKindOfClass:[UITableViewCell class]]) { cell = (SampleTableCell *)currentObject; break; } } } // Configure the cell. NSUInteger row = [indexPath row]; NSUInteger count = [_allEntries count]; RSSEntry *entry = [_allEntries objectAtIndex:(count-row-1)]; NSString *imageString = entry.image; imageString = [imageString stringByReplacingOccurrencesOfString:@"128x67" withString:@"768x432"]; NSLog(@"IMAGE : %@", imageString); NSURL *imgURL = [[NSURL alloc] initWithString:imageString]; [cell.profilePicture setImageWithURL:imgURL placeholderImage:[UIImage imageNamed:nil]]; NSString *date = [entry.articleDate substringToIndex:12]; cell.datePosted.text = date; cell.name.text = entry.articleTitle; cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } </code></pre> <p>Here's a gif of how it's currently functioning <a href="http://gyazo.com/2011099496257445c008a717beabd8fd" rel="nofollow">http://gyazo.com/2011099496257445c008a717beabd8fd</a></p>
    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