cxfeng1 closed pull request #1420: [WEEX-559][iOS]Fix issue that handleAppear 
should be resent for lazil…
URL: https://github.com/apache/incubator-weex/pull/1420
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h 
b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
index 54a6fa0745..0735ac2f27 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
+++ b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
@@ -264,6 +264,8 @@ typedef id (^WXDataBindingBlock)(NSDictionary *data, BOOL 
*needUpdate);
 
 - (void)_detachSlotEvent:(NSDictionary *)data;
 
+- (void)_buildViewHierarchyLazily;
+
 @end
 
 
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.mm 
b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.mm
index 4a876db8fc..33f9439062 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.mm
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.mm
@@ -229,8 +229,6 @@ - (void)viewDidLoad
 
 - (void)layoutDidFinish
 {
-
-    
     if ([self isViewLoaded]) {
         [self setContentSize:_contentSize];
         [self adjustSticky];
@@ -240,6 +238,12 @@ - (void)layoutDidFinish
     [_loadingComponent resizeFrame];
 }
 
+- (void)_buildViewHierarchyLazily
+{
+    [super _buildViewHierarchyLazily];
+    [self handleAppear];
+}
+
 - (void)viewWillUnload
 {
     ((UIScrollView *)_view).delegate = nil;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to