我正在使用 Tab Bar View App,并且正在使用情节提要,我的 Xcode 版本是 4.3.3。基本上我的应用程序过去加载正常,但后来我添加了第三个视图和第三个视图控制器,它无法正确加载,所以我删除了它们,现在它无法正确加载:/它加载了启动屏幕,但它没有再往前走。
这是我的 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
还有我的 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