iPhone 在 Objective-C 中重新启动时如何捕获事件?

How to catch an event when iPhone is rebooted in Objective-C?

我想做的是设置本地通知。代码按预期工作,但如果 phone 被关闭怎么办?

UILocalNotification when iPhone switched off I need to recreate each local notification had been made so I go through this How to check if iOS device has been rebooted since launch, and How can I detect whether the iphone has been rebooted since last time app started 上阅读了一些文章后,仍然无法达到我的目标。

我想知道的是: iPhone 重启时是否会启动事件?

你误读了你的来源。

当 phone 关闭时不会触发本地通知(正常情况下它是关闭的)。 但是,如果您在下午 3 点收到通知,请在下午 2 点重新启动 phone,然后通知将正常触发。