Deprecate shouldRasterizeDescendants (#3024)

* Deprecate shouldRasterizeDescendants

* Set superclass right
This commit is contained in:
Adlai Holler
2017-02-13 13:34:53 -08:00
committed by GitHub
parent fe0bcec98f
commit bbc1aecf95
13 changed files with 31 additions and 41 deletions

View File

@@ -133,18 +133,4 @@
return self.socialAppDataSource.count;
}
- (void)tableNode:(ASTableNode *)tableNode didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
PostNode *postNode = (PostNode *)[_tableNode nodeForRowAtIndexPath:indexPath];
Post *post = self.socialAppDataSource[indexPath.row];
BOOL shouldRasterize = postNode.shouldRasterizeDescendants;
shouldRasterize = !shouldRasterize;
postNode.shouldRasterizeDescendants = shouldRasterize;
NSLog(@"%@ rasterization for %@'s post: %@", shouldRasterize ? @"Enabling" : @"Disabling", post.name, postNode);
[tableNode deselectRowAtIndexPath:indexPath animated:YES];
}
@end