iOS development Efficiency Add common code snippets for Xcode

Source: Internet
Author: User

TableView is a control we use frequently, and using TableView controls requires you to implement some basic tableview proxies. These are basically the same for every program. It is also a job that we often need to do to declare property. So we need to summarize these common things into blocks of code that we can use later.

The steps are as follows:

1. Select all of the code blocks that we need to reuse and drag them to the libray in the lower right corner.

2. A dialog box will pop up and we need to fill in some basic information

From top to bottom are:

The title of the title Code fragment summary The description of the code snippet platform can use the code snippet of the platform, there are Ios/os x/all three options language the language in which the code snippet can be used completion Shortcut a shortcut to a code snippet, such as Xtableview (when we enter Xtableview in a project, we automatically replace it with our code snippet, or we drag it directly into the project) completion Scopes can use the current code snippet in which files, such as all locations, the header file is medium, of course, you can add multiple supported locations. The last large empty area is a preview of the effect on the snippet. The final appearance in the interface is as follows:

iOS development Efficiency Add common code snippets for Xcode

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.