IOS: Custom code block {}

Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="font-family: ‘courier new‘, courier; font-size: 16px;">The 1.Xcode itself comes with code blocks that are commonly used for coding, such as</span></p></p><p><p></p></p><p><p></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;">Call Method:</span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;">(1) drag directly into the code Area:</span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;"></span></p></p><p><p></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;">(2) using the shortcut key, type "while", and Xcode will show the auto-complete prompt</span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;"></span></p></p><p><p></p></p><p><p></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #ff0000;">You can also customize your own common code blocks:</span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;">(1) Writing code</span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;">(2) Select the code, press and hold the left mouse button on the selected code <span id="0_nwp"> <span style="color: #000000;"></span> until the cursor symbol becomes a mouse pattern, or if there is no mouse, drag the code after the control key is Pressed.</span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span></span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span id="0_nwp">(3) drag and drop to block code area</span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span></span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span>(4) Click on the icon to open the Code area</span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span></span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span>(5) "Edit", Set</span></span></p></p><p><p></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span>(6 Set block Code name, quick Prompt</span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span></span></span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier; color: #000000;"><span>(7)</span></span> <span style="font-size: 16px; font-family: ‘courier new‘, courier;">set the replaceable character to replace @ "Cell" with the @ "< #name #>" placeholder, which can be automatically selected to a manually encoded position after the AutoComplete Code. finally, Press Done. </span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;"></span></p></p><p><p></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;">(8) Test code, directly select Reusecell drag down or enter the shortcut key Reusecell can be used</span></p></p><p><p><span style="font-size: 16px; font-family: ‘courier new‘, courier;"></span></p></p><p><p></p></p><p><p></p></p><p><p><span style="font-family: ‘courier new‘, courier; font-size: 18px;">Explain:</span></p></p><p><p><span style="font-family: ‘courier new‘, courier; font-size: 18px;"></span></p></p><p><p></p></p><p><p>IOS: Custom code block {}</p></p></span>

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.