1
我尝试使用下面的行创建在通知中心一样的效果,但我不断收到一个错误:试图通过调用+ notificationCenterVibrancyEffect创建UIVibrancyEffect不过的错误时
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>
我到底该怎么做?你可以给我说明或链接有指导的文件吗? – madtapper 2014-12-03 00:18:35
没关系,明白了。 – madtapper 2014-12-03 00:21:21
好吧。我刚刚做了一个修改。 – 2014-12-03 00:22:28