Resolving jerky UITableView Scroll

      No Comments on Resolving jerky UITableView Scroll

Hi

We all have faced situation where scrolling of table view is not smooth.There can be many causes for the same. In order to speedup the scroll we can do a quick check

1.Avoid drawing.

2.Avoid manipulating layers.

3.Try to return cell as quickly as possible.for that you can move the data feeding for the cell to

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

 
4.Use asynchronous loading for images.

Pro Tip:- Cache your layers use

[uitableviewCell>.layer setRasterizationScale:[[UIScreen mainScreen] scale]];//this will prevent text blurring
uitableviewCell.layer.shouldRasterize=YES;

 

 

A pat on the back !!

Leave a Reply

Your email address will not be published. Required fields are marked *