1

次の行を使用して、通知センターにあるのと同じ効果を作成しようとしていますが、エラーが発生し続けます:

UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:[UIVibrancyEffect notificationCenterVibrancyEffect]];

エラー:

2014-12-02 16:30:35.597 Trial[11543:1628621] +[UIVibrancyEffect notificationCenterVibrancyEffect]: unrecognized selector sent to class 0x10569ebe0
2014-12-02 16:30:35.602 Trial[11543:1628621] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIVibrancyEffect notificationCenterVibrancyEffect]: unrecognized selector sent to class 0x10569ebe0'

通知センターのヘッダー ファイルをインポートしましたが、実行時にこの問題を解決するものは何もないようです:

#import <NotificationCenter/NotificationCenter.h>
4

1 に答える 1