Anwendungen sind zu erwarten, dass ein root-view-controller am Ende der Anwendung zu starten wait_fences: nicht erhalten Antwort: 10004003

wenn ich starte meine Anwendung im iphone-emulator, geht das ohne problem. Wenn ich Start am Gerät zum Absturz, so ruhig wie ich es öffnen. Aber wenn ich den emulator starten, es sagt, dass problem:

Applications are expected to have a root view controller at the end of application launch
wait_fences: failed to receive reply: 10004003

Was kann ich tun?
Dies ist meine Bewerbung delegieren:

.h :

#import <UIKit/UIKit.h>

@class TrovaChiaviViewController;

@interface TrovaChiaviAppDelegate : NSObject <UIApplicationDelegate>
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet TrovaChiaviViewController *viewController;
@end

und dies ist .m

#import "TrovaChiaviAppDelegate.h"
#import "TrovaChiaviViewController.h"

@implementation TrovaChiaviAppDelegate
@synthesize window = _window;
@synthesize viewController = _viewController;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
    return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{

}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    [application release];
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{

}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
}
- (void)applicationWillTerminate:(UIApplication *)application
{

}
- (void)dealloc
{
    [_window release];
    [_viewController release];
    [super dealloc];
}

@end
InformationsquelleAutor JackTurky | 2011-11-08
Schreibe einen Kommentar