[
https://issues.apache.org/jira/browse/WEEX-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577792#comment-16577792
]
ASF GitHub Bot commented on WEEX-559:
-------------------------------------
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:
[email protected]
> Resend handleAppear for lazily created scrollview
> -------------------------------------------------
>
> Key: WEEX-559
> URL: https://issues.apache.org/jira/browse/WEEX-559
> Project: Weex
> Issue Type: Bug
> Components: iOS
> Affects Versions: 0.19
> Reporter: Wang Qianyuan
> Assignee: XuYouyang
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)