Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异步update多条数据数据时,只update一条数据 #57

Open
Cz314 opened this issue Aug 28, 2018 · 1 comment
Open

异步update多条数据数据时,只update一条数据 #57

Cz314 opened this issue Aug 28, 2018 · 1 comment

Comments

@Cz314
Copy link

Cz314 commented Aug 28, 2018

使用AFNetworking下载完成回到主线程update,同时下载多条,执行该方法都是提示“更新成功“,但表内model的property仅更新其中一条。是同时对表内单条数据进行处理的,请问有什么解决办法吗?

@Cz314
Copy link
Author

Cz314 commented Aug 28, 2018

[manager downloadTaskWithReques:[..]
progress:^{...}
destination:^{...}
completionHandler:^{
...
dispatch_async(dispatch_get_main_queue(), ^{
[model update];
});
}];
多处调用此代码,实际仅更新一次

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant