浏览代码

iOS 7 library long touch: minor tweaks after device tests

Felix Paul Kühne 11 年之前
父节点
当前提交
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;