简体   繁体   中英

My iOS App is having a Black Screen after Splash Screen, but it shows the status bar. iOS SDK 5.1

I am using the Tab Bar View App, and am using a storyboard, my Xcode Version is 4.3.3. Basically my app used to load fine, but then I added a third view and third view controllers and it wouldn't load properly so I deleted them and now it won't load properly:/ It loads the splash screen but it doesn't go any further.

Here is my AppDelegate.h

//
//  AppDelegate.h
//  Work App for Dad
//
//  Created by Alfie Hopkin on 17/06/2012.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UIViewController *FirstViewController;

@end

And my AppDelegate.m

//
//  AppDelegate.m
//  Work App for Dad
//
//  Created by Alfie Hopkin on 17/06/2012.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "AppDelegate.h"

@implementation AppDelegate

@synthesize window = _window;
@synthesize FirstViewController;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    return YES;
}

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

    // Override point for customization after app launch    
    [_window addSubview:FirstViewController.view];
    [_window makeKeyAndVisible];
}

@end

您是否忘记在情节提要的身份检查器中为视图控制器设置自定义类?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM