Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to increase the speed of the scroll in the table view when images are being loaded in each cell?
    primarykey
    data
    text
    <p>Check out the last lines before [return cell]..After the images are being loaded the scrolling speed is decreasing..it seems the scroll gets stuck</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"MyIdentifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease]; } int storyIndex = [indexPath indexAtPosition: [indexPath length] - 1]; NSString *itemDescription=[[stories objectAtIndex: storyIndex] objectForKey:@"title"]; CGRect aframe = CGRectMake(80, 30, 250, 40); textLabel = [[UILabel alloc] initWithFrame:aframe]; textLabel.font = [UIFont boldSystemFontOfSize:14]; textLabel.numberOfLines=0; textLabel.textColor = [UIColor darkTextColor]; textLabel.backgroundColor = [UIColor whiteColor]; [cell.contentView addSubview:textLabel]; textLabel.text=itemDescription; CGRect frame = CGRectMake(0, 0, 70,80); UIImageView *TopImageView = [[UIImageView alloc] init]; [cell.contentView addSubview:TopImageView]; TopImageView.frame=frame; m_strImage = [m_imglinkArray objectAtIndex:storyIndex]; TopImage = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:m_strImage]]]; TopImageView.image=TopImage; return cell; } </code></pre> <p>Could you guys help me to increase the speed of the scroll?</p> <p>Regards</p> <p>Arun</p>
    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.
 

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