You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by kf...@apache.org on 2017/06/26 03:03:16 UTC

incubator-weex git commit: + [ios] fix slider bug when weex run in iOS 8.x

Repository: incubator-weex
Updated Branches:
  refs/heads/0.15-dev f76eae475 -> b549a22f8


+ [ios] fix slider bug when weex run in iOS 8.x


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/b549a22f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/b549a22f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/b549a22f

Branch: refs/heads/0.15-dev
Commit: b549a22f8b7dab951a0dbbc94776fa95610a8556
Parents: f76eae4
Author: 齐山 <su...@163.com>
Authored: Mon Jun 26 10:58:12 2017 +0800
Committer: 齐山 <su...@163.com>
Committed: Mon Jun 26 10:58:12 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b549a22f/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
index 690c709..7c7fbd0 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
@@ -80,6 +80,13 @@ typedef NS_ENUM(NSInteger, Direction) {
     return self;
 }
 
+- (void)dealloc
+{
+    if (_scrollView) {
+        _scrollView.delegate = nil;
+    }
+}
+
 - (void)layoutSubviews
 {
     [super layoutSubviews];