Skip to content
Snippets Groups Projects
Commit 0e21bb17 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

iOS: remove deleted models

parent b77f5c59
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,12 @@ ...@@ -54,6 +54,12 @@
} }
} }
} }
for (int i=0;i<[models count]; i++) {
if(![[NSFileManager defaultManager] fileExistsAtPath:[models[i] getFile]]) {
[models removeObject:models[i]];
i--;
}
}
[self.tableView reloadData]; [self.tableView reloadData];
[self.refreshControl endRefreshing]; [self.refreshControl endRefreshing];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment