iOS8上本地通知接收不到的问题

需要手动加上这句话 
if ([UIApplicationinstancesRespondToSelector:@selector(registerUserNotificationSettings:)]){
        [[UIApplicationsharedApplication] registerUserNotificationSettings:[UIUserNotificationSettingssettingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSoundcategories:nil]];
原文地址:https://www.cnblogs.com/lisjie/p/5135063.html