You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/08 04:44:37 UTC
[2/5] incubator-weex git commit: * [ios] Support updating
reload-interval
* [ios] Support updating reload-interval
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/c29d5a56
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c29d5a56
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c29d5a56
Branch: refs/heads/0.11-dev
Commit: c29d5a56b9a11bd633d5982952fc871c9caafb79
Parents: 37e8dbb
Author: \u9690\u98ce <cx...@apache.org>
Authored: Tue Mar 7 21:25:36 2017 +0800
Committer: \u9690\u98ce <cx...@apache.org>
Committed: Tue Mar 7 21:25:36 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Component/WXListComponent.m | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c29d5a56/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
index a106d81..cfeb380 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
@@ -152,6 +152,15 @@
_tableView.dataSource = nil;
}
+- (void)updateAttributes:(NSDictionary *)attributes
+{
+ [super updateAttributes:attributes];
+
+ if (attributes[@"reloadInterval"]) {
+ _reloadInterval = [WXConvert CGFloat:attributes[@"reloadInterval"]] / 1000;
+ }
+}
+
- (void)setContentSize:(CGSize)contentSize
{
// Do Nothing