asyncdisplaykit

UITableViewCell content flickers while reloading cells individually

强颜欢笑 提交于 2019-12-07 03:33:53
问题 I have a table view linked to a NSFetchedResultController (i.e. loading data and also tracking changes to data is bound to the FRC) I'm not using AutoLayout in my cells (due to huge performance drop it introduces in iOS 8). I'm laying out my cells' content manually in cells (using -(void)layoutSubviews ). plus, the height of rows are calculated based on content and are cached/invalidated properly. If any condition related to my data changes, related cells get updated individually (with the

UITableViewCell content flickers while reloading cells individually

点点圈 提交于 2019-12-05 08:17:35
I have a table view linked to a NSFetchedResultController (i.e. loading data and also tracking changes to data is bound to the FRC) I'm not using AutoLayout in my cells (due to huge performance drop it introduces in iOS 8). I'm laying out my cells' content manually in cells (using -(void)layoutSubviews ). plus, the height of rows are calculated based on content and are cached/invalidated properly. If any condition related to my data changes, related cells get updated individually (with the whole -(void)controllerWillChangeContent:... through -(void)controllerDidChangeContent:... delegate

Add custom Button with AsyncDisplayKit

与世无争的帅哥 提交于 2019-12-01 01:02:13
I am developing an IOS application. I use Facebook AsyncDisplayKit library. I want to a button in ASNodeCell Bu I got " Variable 'node' is uninitialized when captured by block. How can I add UIButton or UIWebView control in ASNodeCell. Please help me dispatch_queue_t _backgroundContentFetchingQueue; _backgroundContentFetchingQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0); dispatch_async(_backgroundContentFetchingQueue, ^{ ASDisplayNode *node = [[ASDisplayNode alloc] initWithViewBlock:^UIView *{ UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; [button