facebookarchive / AsyncDisplayKit

Smooth asynchronous user interfaces for iOS apps.
http://asyncdisplaykit.org
Other
13.41k stars 2.21k forks source link

Screen Stuck #3293

Open winterlow opened 6 years ago

winterlow commented 6 years ago

In first controller WEAK_SELF(weakSelf); JSHCCommentDeatilController *jvc = [[JSHCCommentDeatilController alloc] initWithModel:model]; jvc.callback = ^{ [weakSelf performSelector:@selector(doNetworkRequestForNewsDetail) withObject:nil afterDelay:0.5]; }; [self.navigationController pushViewController:jvc animated:YES]; In SEL doNetworkRequestForNewsDetail, if successed,the controller will reload the tableNode.

IN JSHCCommentDeatilController, I manual did a network request,if it successed, I tried the next code: if ([[dic objectForKey:@"status"] intValue]) { if (self.callback) { self.callback(); } [self.navigationController popViewControllerAnimated:YES]; } but it stuck in the first controller, how can I resolve this? Please help

ay8s commented 6 years ago

Please update to use Texture and ask any questions over in the Texture repository. https://github.com/texturegroup/texture