今天用UILocalNotification增加本地通知,很奇怪,调用scheduleLocalNotification完全收不到通知,但是调用
presentLocalNotificationNow就能收到。网上查了资料,看到苹果官方下面一段话:
Local and Remote Notification Programming Guide:
In iOS 8 and later, apps that use either local or remote notifications must register the types