Explorar o código

Fix viewWillAppear Not Refresh

MJ Lee %!s(int64=11) %!d(string=hai) anos
pai
achega
a3804c056c

BIN=BIN
MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 0
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshBaseView.m

@@ -147,6 +147,9 @@ - (void)beginRefreshing
         } else {
         } else {
     #warning 不能调用set方法
     #warning 不能调用set方法
             _state = MJRefreshStateWillRefreshing;
             _state = MJRefreshStateWillRefreshing;
+            
+#warning 为了保证在viewWillAppear等方法中也能刷新
+            [self setNeedsDisplay];
         }
         }
     }
     }
 }
 }