Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
3f379915
Commit
3f379915
authored
Aug 11, 2013
by
Felix Paul Kühne
Browse files
UPNP file list: fix alternating table background
parent
661813b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCLocalServerFolderListViewController.m
View file @
3f379915
...
...
@@ -107,7 +107,7 @@
if
(
!
[
item
isContainer
])
{
MediaServer1ItemObject
*
mediaItem
=
_objectList
[
indexPath
.
row
];
[
cell
setSubtitle
:[
NSString
stringWithFormat
:
@"%@
- %@
"
,
mediaItem
.
size
,
mediaItem
.
duration
]];
[
cell
setSubtitle
:[
NSString
stringWithFormat
:
@"%@"
,
mediaItem
.
size
]];
[
cell
setIsDirectory
:
NO
];
}
else
[
cell
setIsDirectory
:
YES
];
...
...
@@ -119,6 +119,11 @@
#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
{
MediaServer1BasicObject
*
item
=
_objectList
[
indexPath
.
row
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment