我正在使用标签栏视图应用程序,并且正在使用情节提要,我的Xcode版本是4.3.3。基本上我的应用程序曾经加载正常,但后来我添加了第三个视图和第三个视图控制器,它无法正确加载,所以我删除了它们,现在它无法正确加载:/它会加载初始屏幕,但不会再进一步。
这是我的应用代表。
//
// 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
// 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
您是否忘记在情节提要的身份检查器中为视图控制器设置自定义类?