Repository: incubator-weex Updated Branches: refs/heads/master 3f3c80910 -> cecc53bbe
[WEEX-168] [iOS] Animation needLayout may show incorrect Fix bug when animation's needLayout is true with two animation together. By fixing the array problem when styles is not single. close #940 Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/cecc53bb Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/cecc53bb Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/cecc53bb Branch: refs/heads/master Commit: cecc53bbe6252ad7bcd8e03f58691090002674e9 Parents: 3f3c809 Author: doumafang <[email protected]> Authored: Tue Dec 12 15:44:40 2017 +0800 Committer: acton393 <[email protected]> Committed: Wed Jan 17 16:39:27 2018 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Module/WXTransition.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cecc53bb/ios/sdk/WeexSDK/Sources/Module/WXTransition.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Module/WXTransition.m b/ios/sdk/WeexSDK/Sources/Module/WXTransition.m index 03cbc62..ddb7e98 100644 --- a/ios/sdk/WeexSDK/Sources/Module/WXTransition.m +++ b/ios/sdk/WeexSDK/Sources/Module/WXTransition.m @@ -141,9 +141,10 @@ if (styles.count == 0) { return; } - NSString *singleProperty = styles.allKeys[0]; - if ([propertyNames containsString:singleProperty]) { - [self _dealTransitionWithProperty:singleProperty styles:styles]; + for (NSString * name in styles.allKeys) { + if ([propertyNames containsString:name]) { + [self _dealTransitionWithProperty:name styles:styles]; + } } }
