Marino Faggiana 7 سال پیش
والد
کامیت
db979e43bf
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      iOSClient/Main/CCMain.m

+ 5 - 2
iOSClient/Main/CCMain.m

@@ -5506,8 +5506,11 @@
     
     //restore swipeOffset after relod
     CGFloat swipeOffset = [[_statusSwipeCell objectForKey:[@(indexPath.row) stringValue]] doubleValue];
-    if (swipeOffset != 0) {
-        [cell setSwipeOffset:swipeOffset animated:NO completion:nil];
+    if (swipeOffset < 0) {
+        //[cell setSwipeOffset:swipeOffset animated:NO completion:nil];
+        [cell showSwipe:MGSwipeDirectionRightToLeft animated:NO];
+    } else if (swipeOffset > 0) {
+        [cell showSwipe:MGSwipeDirectionLeftToRight animated:NO];
     }
     
     return cell;