2

我在后台运行的 iPhone 应用程序可以接收电池通知吗?

我的应用已注册电池通知:

  • 电池通知-(void)batteryLevelDidChange:(NSNotification *)notification{[self.tableView reloadData];}

  • (void)batteryStateDidChange:(NSNotification *)notification{[self.tableView reloadData];}

对此的任何帮助表示赞赏。

4

1 回答 1

2

不会。该代码只会在您的应用程序处于前台时调用。

于 2011-01-17T04:56:14.540 回答