보기를 위해 UIBlurEffect
과 UIVibrancyEffect
을 사용하고 있습니다.선택자 알림에 대한 알려진 클래스 메소드가 없습니다. CenterVibrancyEffect iOS 8
Apple docs here은 "notificationCenterVibrancyEffect"를 요청하지만 내 수업에서 UIKit을 가져온 후에도 No known class method for selector notificationCenterVibrancyEffect
을 던집니다.
코드는 다음과 같습니다, 다른 모든 클래스 메소드는 잘 해결 :
는UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVibrancyEffect *vibrancyEffect = [UIVibrancyEffect notificationCenterVibrancyEffect];
UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
UIVisualEffectView *vibrancyEffectView = [[UIVisualEffectView alloc] initWithEffect:vibrancyEffect];
사용중인 iOS 버전은 무엇입니까? 이 내용은 "iOS 8.0 이상"에 포함되어 있습니다. –
죄송합니다, 분명하다고 생각했습니다. 예 모든 대상이 iOS 8로 설정되었습니다. – brandonscript
Swift와 상호 작용합니까? 문서는 Obj-C가 사용할 수있는 방법 만 보여줍니다. – Fogmeister