fix build

This commit is contained in:
Gautier Pelloux-Prayer 2016-07-21 15:15:31 +02:00
parent dc06ac83e4
commit fce3487e8a

View file

@ -62,7 +62,11 @@
else {
CAAnimationDelegate *delegate = [[CAAnimationDelegate alloc] init];
delegate.completion = completion;
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_10_0
self.delegate = delegate;
#else
self.delegate = (id<CAAnimationDelegate>)delegate;
#endif
}
}
@ -79,7 +83,11 @@
else {
CAAnimationDelegate *delegate = [[CAAnimationDelegate alloc] init];
delegate.start = start;
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_10_0
self.delegate = delegate;
#else
self.delegate = (id<CAAnimationDelegate>)delegate;
#endif
}
}