简体   繁体   中英

Why am I getting NSUnkownKeyException?

I have looked at the answers of this question here and none of them seem to fix the problem I am having, also most other answers are not for swift but i tried the ones I understood.

All of the class names match, the outlets have the right names and there are no outlets that aren't defined... no little yellow triangle. (links to images below, site wont let me put more than 2)

Shows class names in inspector and file are the same

Shows outlet names in file and inspector

As the screenshot clearly shows, the property MyInputText does not bind to anything. Did you connect the UITextField in the UIStoryBoard to the related property in the code?

Here a screenshot showing a proper binding between a property and the XIB object.

Here a screenshot showing a proper binding between a property and the XIB object.

连接检查器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM