今天发现我的一个软件杀掉后又自动启动了,一直搞不明白为什么会这样?
App是一个录音机程序,启动时会打开录音机。
会不会是因为我在App进入前台的方法中发送了通知,代码如下。
- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
    [[NSNotificationCenter defaultCenter] postNotificationName:@"startRecoder" object:self];
}