Button Node stays highlighted on touch up inside. I have used Blocks to handle button action.
Code in controller for tableView:(ASTableView *)tableView nodeBlockForRowAtIndexPath:(NSIndexPath *)indexPath


_Version Info :
Can get a sample project for this ?
Sorry for the delay. Here it is.
@modLX4 There is something strange happening when presenting the segue immediately. The setHighlighted: method is called once with YES and after that with NO but the state is not updated.
The workaround is to wrap the [self handleFeedCellButtonAction:modelAtIndexPath buttonIndex:buttonIndex]; in dispatch_after block with 0.01 delay (I tested it with that delay). Not the pretties solution but .. it works.
@modLX4 Agree with @EviluS ... I just looked into it briefly and the highlighted state get's updated property on the ASButtonNode just the display is not happening.
For now the workaround from @EviluS makes sense.
dispatch_after() does the job but bad UX.
Temporary Solution
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
[self performSegueWithIdentifier:@"toDetailView" sender:NULL];
});
}
@modLX4 AsyncDisplayKit isn't compatible with Interface Builder, so take care with how you're creating ASDK elements to make sure they are never specified in .xib files.
Thanks for posting about this and bringing the details to help arrive at a workaround - let us know if you find any other issues that look like they could be framework problems! Happy to help in Slack too :)
I have this same issue: my ASButtonNode does not finish redisplaying before I push a new view controller onto my nav stack. The result is that when you navigate back, the ASButtonNode is in some permanent in-between state (the background image updated but not the title text).
I could only resolve this by setting displaysAsynchronously to NO which is pretty unfortunate. I don't like the temporary dispatch_after solution, and I hope you guys consider reopening this issue.
I don't have time to make a demo project, but all you would need is an ASButtonNode with different background image and attributed title colors for the states Highlighted and Normal, and when the button is tapped a new VC should be pushed on the navigation stack.