IOS Exception2 this class is not key value coding-compliant for the key Click

2015-06-16 23:00:53.706 MyIOSPackage[823:280049] *** Terminating app due to uncaught exception ‘NSUnknownKeyException‘, reason: ‘[<MyIOSPackage.ViewController 0x7fd760715ac0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Click.‘

*** First throw call stack:

(

0   CoreFoundation                      0x000000010087fb95 __exceptionPreprocess + 165

1   libobjc.A.dylib                     0x00000001023d4bb7 objc_exception_throw + 45

2   CoreFoundation                      0x000000010087f7d9 -[NSException raise] + 9

3   Foundation                          0x0000000100c9dde3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259

4   CoreFoundation                      0x00000001007c7dd0 -[NSArray makeObjectsPerformSelector:] + 224

5   UIKit                               0x00000001013eea7d -[UINib instantiateWithOwner:options:] + 1506

6   UIKit                               0x000000010124a598 -[UIViewController _loadViewFromNibNamed:bundle:] + 242

7   UIKit                               0x000000010124ab88 -[UIViewController loadView] + 109

8   UIKit                               0x000000010124adf9 -[UIViewController loadViewIfRequired] + 75

9   UIKit                               0x000000010124b28e -[UIViewController view] + 27

10  UIKit                               0x00000001011675e9 -[UIWindow addRootViewControllerViewIfPossible] + 58

11  UIKit                               0x00000001011679af -[UIWindow _setHidden:forced:] + 247

12  UIKit                               0x0000000101174219 -[UIWindow makeKeyAndVisible] + 42

13  UIKit                               0x0000000101117727 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732

14  UIKit                               0x000000010111a43e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349

15  UIKit                               0x000000010111933c -[UIApplication workspaceDidEndTransaction:] + 179

16  FrontBoardServices                  0x0000000103f27f85 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21

17  CoreFoundation                      0x00000001007b349c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12

18  CoreFoundation                      0x00000001007a91e5 __CFRunLoopDoBlocks + 341

19  CoreFoundation                      0x00000001007a8fa5 __CFRunLoopRun + 2389

20  CoreFoundation                      0x00000001007a83e6 CFRunLoopRunSpecific + 470

21  UIKit                               0x0000000101118da9 -[UIApplication _run] + 413

22  UIKit                               0x000000010111bb60 UIApplicationMain + 1282

23  MyIOSPackage                        0x00000001006a1837 main + 135

24  libdyld.dylib                       0x0000000102b78145 start + 1

25  ???                                 0x0000000000000001 0x0 + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb) 

时间: 2024-10-15 03:35:45

IOS Exception2 this class is not key value coding-compliant for the key Click的相关文章

ssh无密码登录设置方法以及出现问题 ECDSA host key 和IP地址对应的key不同的解决

最近在做hadoop,因为要求各主机之间的用户必须相同,且为方便远程登录,需配置无密码登录 先附上ssh无密码登录设置方法: 先生成密钥并配置无ssh无密码登录本机,输入命令: ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 将文件拷贝到其他主机相同的文件夹内,输入命令: scp authorized_keys hostname1:~/.ssh/ scp autho

公钥(Public Key)与私钥(Private Key)

公钥(Public Key)与私钥(Private Key)是通过一种算法得到的一个密钥对(即一个公钥和一个私钥),公钥是密钥对中公开的部分,私钥则是非公开的部分.公钥通常用于加密会话密钥.验证数字签名,或加密可以用相应的私钥解密的数据.通过这种算法得到的密钥对能保证在世界范围内是唯一的.使用这个密钥对的时候,如果用其中一个密钥加密一段数据,必须用另一个密钥解密.比如用公钥加密数据就必须用私钥解密,如果用私钥加密也必须用公钥解密,否则解密将不会成功.

view.setTag(key,Object) (java.lang.IllegalArgumentException: The key must be an application-specific resource id.)

转自: http://blog.csdn.net/brokge/article/details/8536906 setTag是android的view类中很有用的一个方法,可以用它来给空间附加一些信息,在很多场合下都得到妙用. setTag(Object tag)方法比较简单,这里主要谈一谈带两个参数的setTag方法. 官方的api文档中提到:" The specified key should be an id declared in the resources of the applica

IOS深入学习(21)之Key-value coding

http://blog.csdn.net/developer_zhang/article/details/12840567 1 前言 本节我们主要介绍键值编码,以及如何使一个类符合KVC编码. 2 详述 键-值编码是一个对于间接访问一个对象属性和关系使用字符标识的机制.它支持或者关系几个特别的Cocoa编程机制和技术,在Core Data,application scriptability,绑定技术(application scriptability和绑定技术特属于OS X)和声明属性的语言特性

v-for为什么要加key,能用index作为key么

前言 在vue中使用v-for时,一直有几个疑问: v-for为什么要加key 为什么有时候用index作为key会出错 带着这个疑问,结合各种博客和源码,终于有了点眉目. virtual dom 要理解diff的过程,先要对virtual dom有个了解,这里简单介绍下. [作用] 我们都知道重绘和回流,回流会导致dom重新渲染,比较耗性能:而virtual dom就是用一个对象去代替dom对象,当有多次更新dom的动作时,不会立即更新dom,而是将变化保存到一个对象中,最终一次性将改变渲染出

xcode KVC:Key Value Coding 键值编码

赋值 // 能修改私有成员变量 - (void)setValue:(id)value forKey:(NSString *)key; - (void)setValue:(id)value forKeyPath:(NSString *)keyPath; - (void)setValuesForKeysWithDictionary:(NSDictionary *)keyedValues; 取值 // 能取得私有成员变量的值 - (id)valueForKey:(NSString *)key; - (

MySQL foreign key - How to define a foreign key in MySQL

table of contents Creating a MySQL foreign key MySQL foreign key support in database engines MySQL foreign keys and ON UPDATE and ON DELETE MySQL foreign key FAQ: How do I define a foreign key in MySQL? Answer: Here's a quick example of how I typical

A Highly Maintainable Design is a Key for coding

If we get used to the OOP, we know that it often mentioned the concept about "Reusable", actually that bring different layers of meanings about software design, one could be, if it's reusable, then we will be able to use it in new software with

Send Push Notifications to iOS Devices using Xcode 8 and Swift 3, APNs Auth Key

Send Push Notifications to iOS Devices using Xcode 8 and Swift 3 OCT 6, 2016 Push notifications are a great way to ensure your users re-engage with your app every once in a while, but implementing them on iOS can be challenging, especially with all o