UITableView scrolling is not smooth

前端 未结 6 697
囚心锁ツ
囚心锁ツ 2021-02-01 20:41

I have the smooth scrolling issue at my UITableView with UITableViewCell which contains UIImageView. Similar issues could be found all over the StrackOverflow but none of the pr

6条回答
  •  你的背包
    2021-02-01 20:57

    Try facebook's Async Display library.

    https://github.com/facebook/AsyncDisplayKit

    Really easy to use.. from their guide: http://asyncdisplaykit.org/guide/

    _imageNode = [[ASImageNode alloc] init];
    _imageNode.backgroundColor = [UIColor lightGrayColor];
    _imageNode.image = [UIImage imageNamed:@"hello"];
    _imageNode.frame = CGRectMake(10.0f, 10.0f, 40.0f, 40.0f);
    [self.view addSubview:_imageNode.view];
    

    This decodes the image on a background thread.

    I'm not sure if it's easy to use iOS libraries on Xamarin but if it's easy, give this a shot.

提交回复
热议问题