Common errors in iOS development

Source: Internet
Author: User
1 . Problem performance: What is the situation? How can you not pull the line? problem Brief: iOS space cable to a. h. m file actually multiple drags are invalid. Problem Solving: iOS spatial response It is useless to create a method in code alone, which is usually not responsive to space (the way the code creates the control), so this time we need to control-drag a line with the corresponding method to produce a response    There is a custom class attribute in the view controller of the layout file, which is used to establish a connection to our. h. m file, and if the connection is not established, the drag line is not dragged into the 2. Problem: Hey, Click the button event to get an error ? problem Brief: All code looks normal and runs without error, but one-click Method goes wrong. Problem Solving: iOS uses drag-line to build the response of the control, and automatically generate the corresponding code (also can not be generated automatically), but in this regard it is not very smart    For example, you drag the line to create a code, and then delete the code, this time the response of the control is not actually canceled, So when the direct operation will be reported Nofindkey and other similar errors, the general meaning is that there is a key is not found, this time we have to remember! If you want to delete a response method, you also need to remove the corresponding control response to the layout file,    such as a button when you drag a Send Antion method, you find that you need to create a antion without send, then delete the previous method directly after the line is dragged again , this time it will automatically set up two response relationships, if you do not remove the previous response, there will be a click button to error the phenomenon

Common errors in iOS development

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.