Commit 3f379915 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

UPNP file list: fix alternating table background

parent 661813b7
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
if (![item isContainer]) { if (![item isContainer]) {
MediaServer1ItemObject *mediaItem = _objectList[indexPath.row]; MediaServer1ItemObject *mediaItem = _objectList[indexPath.row];
[cell setSubtitle:[NSString stringWithFormat:@"%@ - %@", mediaItem.size, mediaItem.duration]]; [cell setSubtitle:[NSString stringWithFormat:@"%@", mediaItem.size]];
[cell setIsDirectory:NO]; [cell setIsDirectory:NO];
} else } else
[cell setIsDirectory:YES]; [cell setIsDirectory:YES];
...@@ -119,6 +119,11 @@ ...@@ -119,6 +119,11 @@
#pragma mark - Table view delegate #pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ {
MediaServer1BasicObject *item = _objectList[indexPath.row]; MediaServer1BasicObject *item = _objectList[indexPath.row];
......
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