facebookarchive / AsyncDisplayKit

Smooth asynchronous user interfaces for iOS apps.

Home Page:http://asyncdisplaykit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen Stuck

winterlow opened this issue · comments

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

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