Commit d4634a7e authored by Pierre SAGASPE's avatar Pierre SAGASPE

onedrive : displaying the number of items in bottom bar

parent 80ccd45f
......@@ -94,6 +94,14 @@
{
[self.tableView reloadData];
[self.activityIndicator stopAnimating];
NSUInteger count = self.controller.currentListFiles.count;
if (count == 0)
self.numberOfFilesBarButtonItem.title = NSLocalizedString(@"NO_FILES", nil);
else if (count != 1)
self.numberOfFilesBarButtonItem.title = [NSString stringWithFormat:NSLocalizedString(@"NUM_OF_FILES", nil), count];
else
self.numberOfFilesBarButtonItem.title = NSLocalizedString(@"ONE_FILE", nil);
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment