大佬教程收集整理的这篇文章主要介绍了ios – 这个类不是键XXXXXX的键值编码,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
reason: '[<LoadingViewController 0x6b2c5a0> SETVALue:forUndefinedKey:]: this class is not key value coding-compliant for the key aproposViewController.'
奇怪的是aproposViewController不在LoadViewController中使用,它只是我应用程序中的另一个视图控制器.请帮忙,thx提前:)
编辑
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
没有aproposViwController的声明,即使在IB的主视图!
编辑2
这里有两个屏幕截图我的主要和在viewView中的界面构建器:
因此,您可能会在一个点上在LoadViewController上创建一个名为aproposViewController的IBOutlet,将另一个视图控制器连接到该nib中,然后删除IBOutlet,但被忽略以删除该nib中的连接.
所以当nib被加载时,它试图设置属性,只发现它不存在,因此:
reason: '[<LoadingViewController 0x6b2c5a0> SETVALue:forUndefinedKey:]: this class is not key value coding-compliant for the key aproposViewController.'
以上是大佬教程为你收集整理的ios – 这个类不是键XXXXXX的键值编码全部内容,希望文章能够帮你解决ios – 这个类不是键XXXXXX的键值编码所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。