Commit 31205a76 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

playlist table cell: don't add long touch zooming gesture on iOS 6

parent c271db9b
......@@ -102,13 +102,15 @@
[super setEditing:editing animated:animated];
[self _updatedDisplayedInformationForKeyPath:@"editing"];
if (editing) {
if (_longPress)
[self removeGestureRecognizer:_longPress];
} else {
if (!_longPress)
_longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longTouchGestureAction:)];
[self addGestureRecognizer:_longPress];
if (SYSTEM_RUNS_IOS7_OR_LATER) {
if (editing) {
if (_longPress)
[self removeGestureRecognizer:_longPress];
} else {
if (!_longPress)
_longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longTouchGestureAction:)];
[self addGestureRecognizer:_longPress];
}
}
}
......
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