IOS Xcode solves the problem of "cocould not insert new outlet connection: cocould not find any information for the class named ., Anyinformation

Source: Internet
Author: User

IOS Xcode solves the problem of "cocould not insert new outlet connection: cocould not find any information for the class named ., Anyinformation

In Xcode, you can connect an interface element to the corresponding code file by using the "Control key + drag" button on the StoryBoard editing interface or the xib editing interface, create an outlet in the code file.

 

However, if you are not lucky, you may encounter the following errors during the above operations:

Cocould not insert new outlet connection: cocould not find any information for the class named "xxx ".

"Xxx" is the class name in your target code file. If you do not have any errors, this is entirely the cause of Xcode.

The following describes a simple and convenient method:

1: Delete and re-Add the. h and. m files.

Select the problematic. m and. H files, click the delete key, and then select "Remove Reference". Do not delete the files. Select the "File-> Add Files to..." menu and select the. m File and. h File on the File selection page to Add them to the project.

 

Try it out now!

Related Article

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.