为什么有时候 进入这么多次,一次是 38次,一次是 114次,

initLocalNotification] [L528] 通知的总个数:4

2013-07-19 16:44:13.792 DiabetesManager[27143:907] -[AppDelegate initLocalNotification] [L529] 有效通知的个数:4

2013-07-19 16:44:14.383 DiabetesManager[27143:907] -[AppDelegate application:didReceiveLocalNotification:] [L387] 点入通知的个数 38

 

进入 didReceiveLocalNotification 38 - 3 = 35 次,并且还没有 push出 自己想要的 那个 controller。。。

 

在这里end:

        [[UIApplicationsharedApplication] cancelLocalNotification:notification];

      //  [self initLocalNotification];,原来是 小猫 在追自己的尾巴,同一秒内载入了好多,

 // period = [self changeToMinisecond:1703];

                [totalNotificationArray addObject:item];

                if (period <= 0) {  <cool>

                    period = period + 24 * 60 * 60;

                },加上一个等号的判断好了。。。

原文地址:https://www.cnblogs.com/guligei/p/3200883.html