La mia applicazione funzionava bene fino a oggi ha iniziato a bloccarsi a: [self.window makeKeyAndVisible]; nel delegato dell'app.Blocco in [self.window makeKeyAndVisible];
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
self.viewController = [[ViewControllerWordHelper alloc] initWithNibName:@"ViewControllerWordHelper_iPhone1" bundle:nil];
} else {
self.viewController = [[ViewControllerWordHelper alloc] initWithNibName:@"ViewControllerWordHelper_iPhone" bundle:nil];
}
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
Se il debug e vi entri a [self.window makeKeyAndVisible], l'istruzione successiva prima di schiantarsi è "@synthesize finestra = _window;" nello stesso app delegato.
Tutte le versioni precedenti che funzionavano si comportavano allo stesso modo.
Ho riavviato il mio computer e lo stesso sta accadendo. Sto usando XCode 4.2. C'è qualcosa nell'installazione di xcode che potrei aver cambiato accidentalmente?
Grazie per qualsiasi aiuto.
Quello che segue è l'intera finestra di debug:
`GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 15 16:03:10 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 440.
Pending breakpoint 3 - ""ViewControllerWordHelper.m":136" resolved
Pending breakpoint 4 - ""AppDelegate.m":41" resolved
Pending breakpoint 5 - ""ViewControllerWordHelper.m":27" resolved
Pending breakpoint 6 - ""ViewControllerWordHelper.m":166" resolved
Current language: auto; currently objective-c
(gdb) `
obiettivi pulizia prova con Comando shift-k –
se è possibile, pubblicare l'errore. –
Questo è tutto nella mia finestra di debug: – saman01