当我尝试构建和运行我的应用程序时,它崩溃了,并且在日志中我得到了以下信息:
reason: '[<LoadingViewController 0x6b2c5a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key aproposViewController.'
奇怪的是,在我的应用程序中,aproposViewController
没有在LoadingViewController
中使用。请帮忙解决,谢谢! :)
编辑:
appdelegate.h :
@class LoadingViewController;
@interface TopStationAppDelegate : NSObject <UIApplicationDelegate,CLLocationManagerDelegate> {
UIWindow *window;
LoadingViewController *loadingView;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet LoadingViewController *loadingView;
@end
appdelegate.m :
#import "LoadingViewController.h"
@implementation TopStationAppDelegate
@synthesize window;
@synthesize loadingView;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[window addSubview:loadingView.view];
[window makeKeyAndVisible];
return YES;
}
- (void)dealloc {
[loadingView release];
[window release];
[super dealloc];
}
@end
主视图中,即使在IB中也没有关于 aproposViwController 的声明!!
编辑 2
这里有我在界面构建器中为主界面和 loadingView 做的两个基本设置截图: