私のアプリは今日は正常に起動していましたが、現在このエラーが発生しています
「アプリケーションは、アプリケーションの起動の最後にルート ビュー コントローラーを持つことが期待されています」
コードを変更するように言っている他のスレッドを見てきましたが、この時点に到達するためにコードを変更したことはありません。
デリゲート.h
@interface halo4AppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate>{
UIWindow *window;
UITabBarController *tabBarController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@end
デリゲート.m
@implementation halo4AppDelegate
@synthesize window;
@synthesize tabBarController;
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
sleep(3);
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
return YES;
}
#pragma mark -
#pragma mark Memory management
- (void)dealloc {
[tabBarController release];
[window release];
[super dealloc];
}
@end
私の FirstViewController の xib は、タイトル FirstView.xib 、 ext です