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
a7a5fb3b
Commit
a7a5fb3b
authored
Apr 06, 2015
by
Tobias
Committed by
Felix Paul Kühne
May 13, 2015
Browse files
if we need to remove table rows we should to it at once
parent
60269274
Changes
1
Hide whitespace changes
Inline
Side-by-side
VLC for iOS WatchKit Extension/VLCWatchTableController.m
View file @
a7a5fb3b
...
...
@@ -105,11 +105,14 @@
}
// update on the same page
else
{
NSMutableIndexSet
*
removeRowIndexes
=
[
NSMutableIndexSet
new
];
[
oldObjects
enumerateObjectsUsingBlock
:
^
(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
)
{
if
([
removedSet
containsObject
:
obj
])
{
[
table
removeRow
sAt
Indexes
:[
NSIndexSet
indexSetWith
Index
:
idx
]
]
;
[
removeRowIndexes
add
Index
:
idx
];
}
}];
[
table
removeRowsAtIndexes
:
removeRowIndexes
];
[
newObjects
enumerateObjectsUsingBlock
:
^
(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
)
{
if
([
addedSet
containsObject
:
obj
])
{
NSString
*
rowType
=
[
self
rowTypeForObject
:
obj
];
...
...
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