facebookarchive / AsyncDisplayKit

Smooth asynchronous user interfaces for iOS apps.

Home Page:http://asyncdisplaykit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add target on ControlNode not working

iOS-GauravK opened this issue · comments

i added this code in LikeNode (in init method) of social app example,but its not working

[self addTarget:self action:@selector(likeTapped:) forControlEvents:ASControlNodeEventTouchUpInside];

-(void)likeTapped:(id)sender {
 NSLog(@"Like Button Pressed");
}

Please help
Thank you,
Gaurav

@Ghana93 it looks like it's because the PostNode is changing it to be layer backed. In the latest master we've added an assert that prevents this. So now the example asserts on load when the PostNode tries to make it layer backed.

This issue was moved to TextureGroup/Texture#220