* [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/master Commit: 6c7e5611cf59184f823ad38cf0947cc41b04db7a Parents: 2796573 Author: éå°é£ <[email protected]> Authored: Tue Feb 21 19:32:18 2017 +0800 Committer: GitHub <[email protected]> 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;
