Я имею и выпуск с UIInterpolatingMotionEffect
класса, приложение компилирует, но когда я пытаюсь архивировать я получил эту ошибку компиляции:Нет видимых @interface для «UIInterpolatingMotionEffect» заявляет селектор «initWithKeyPath: Тип:»
No visible @interface for 'UIInterpolatingMotionEffect' declares the selector 'initWithKeyPath:type:'
Я получил эту ошибку на инициализаторов из UIInterpolatingMotionEffect
на этой функции:
- (void)addMotionEffects
{
UIInterpolatingMotionEffect *horizontalMotionEffect = [[UIInterpolatingMotionEffect alloc]
initWithKeyPath:@"center.x" type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis];
horizontalMotionEffect.minimumRelativeValue = @(-20);
horizontalMotionEffect.maximumRelativeValue = @(20);
UIInterpolatingMotionEffect *verticalMotionEffect = [[UIInterpolatingMotionEffect alloc]
initWithKeyPath:@"center.y" type:UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis];
verticalMotionEffect.minimumRelativeValue = @(-20);
verticalMotionEffect.maximumRelativeValue = @(20);
UIMotionEffectGroup *group = [UIMotionEffectGroup new];
group.motionEffects = @[horizontalMotionEffect, verticalMotionEffect];
[self.containerView addMotionEffect:group];
}
Я думаю, что это своего рода ошибка при попытке компиляции для arm64 архитектур, но я не могу понять, как решить проблему.
Любые идеи?
Вы тоже строите поддержку iOS 6? –
Nop, целью развертывания является iOS7 и Base SDK iOS8.1 – jberlana
. Эта ссылка поможет вам. http://www.teehanlax.com/blog/introduction-to-uimotioneffect/ – iMash