mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-29 05:05:37 +08:00
De-register spec app for notifications first.
This commit is contained in:
@@ -456,10 +456,10 @@ EOS
|
|||||||
|
|
||||||
- (void)appLaunched:(id)notification
|
- (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
|
// unregister observer to avoid duplicate invocation
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
|
[[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
|
- (void)runSpecs
|
||||||
|
|||||||
2
vm
2
vm
Submodule vm updated: f85eebc4f4...0c2d1aa351
Reference in New Issue
Block a user