You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/24 16:43:12 UTC
[33/50] incubator-weex git commit: * [ios] CAAnimationDelegate is not
available before iOS 10 SDK
* [ios] CAAnimationDelegate is not available before iOS 10 SDK
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/6c7e5611
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/6c7e5611
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/6c7e5611
Branch: refs/heads/dev
Commit: 6c7e5611cf59184f823ad38cf0947cc41b04db7a
Parents: 2796573
Author: \u9690\u5c0f\u98ce <cx...@gmail.com>
Authored: Tue Feb 21 19:32:18 2017 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Feb 21 19:32:18 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6c7e5611/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
index 3eafce0..c1fea40 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
@@ -45,7 +45,12 @@
@end
+#if __IPHONE_OS_VERSION_MAX_ALLOWED < 100000
+// CAAnimationDelegate is not available before iOS 10 SDK
+@interface WXAnimationDelegate : NSObject
+#else
@interface WXAnimationDelegate : NSObject <CAAnimationDelegate>
+#endif
@property (nonatomic, copy) void (^finishBlock)(BOOL);
@property (nonatomic, strong) WXAnimationInfo *animationInfo;