De-register spec app for notifications first.

This commit is contained in:
Eloy Durán
2013-12-20 12:21:30 +01:00
parent 63991fa446
commit cc15311759

View File

@@ -456,10 +456,10 @@ EOS
- (void)appLaunched:(id)notification
{
// Give a bit of time for the simulator to attach...
[self performSelector:@selector(runSpecs) withObject:nil afterDelay:0.3];
// unregister observer to avoid duplicate invocation
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
// Give a bit of time for the simulator to attach...
[self performSelector:@selector(runSpecs) withObject:nil afterDelay:0.3];
}
- (void)runSpecs