Copy Story Board connection problem: ' Nsunknownkeyexception ', Reason: ' [<viewcontroller 0x7ff3da732de0> Setvalue:forundefinedkey:]: This class is not ... '

Source: Internet
Author: User

' Nsunknownkeyexception ', Reason: ' [<viewcontroller 0x7ff3da732de0> Setvalue:forundefinedkey:]: This class was not Key value coding-compliant for the key Headimageview. '

The reason for this is that the storyboard is a copy of the other items, copied over, the connection is also copied at the same time, in general, because a control in the previous project has been connected to a variable in the Viewcontroller, then the variable was deleted, but the connection is not deleted, Causes the corresponding key to be found at startup and throws the above exception.

Workaround:

Locate the controller, right-click on the properties associated with a control, delete all lines from the previous item (note where there is a yellow warning), recompile and run

Remove and rerun to resolve

Copy Story Board connection problem: ' Nsunknownkeyexception ', Reason: ' [<viewcontroller 0x7ff3da732de0> Setvalue:forundefinedkey:]: This class is not ... '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.