You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: