今天发现我的一个软件杀掉后又自动启动了,一直搞不明白为什么会这样?
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];
}
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];
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货