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的键值编码所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)