Просмотр исходного кода

iOS 7 library long touch: minor tweaks after device tests

Felix Paul Kühne 11 лет назад
Родитель
Сommit
eae7beffa1
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      AspenProject/VLCPlaylistViewController.m

+ 2 - 1
AspenProject/VLCPlaylistViewController.m

@@ -347,7 +347,7 @@
     CGRect frame = cell.frame;
     if (frame.size.height > 90.)
         frame.size.height = 90.;
-    else
+    else if (recognizer.state == UIGestureRecognizerStateBegan)
         frame.size.height = 180;
 
     void (^animationBlock)() = ^() {
@@ -356,6 +356,7 @@
 
     void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
         cell.frame = frame;
+        [self.tableView scrollToRowAtIndexPath:path atScrollPosition:UITableViewScrollPositionNone animated:YES];
     };
 
     NSTimeInterval animationDuration = .2;