Xcode custom code block, xcode custom

Source: Internet
Author: User

Xcode custom code block, xcode custom

Only now can I find that Xcode has such a magical function as a custom code block, which can simplify a lot of boring work on repetitive code. How can I know !!! For specific setup procedures see: http://nshipster.cn/xcode-snippets/ or http://www.sufeinet.com/thread-8732-1-1.html and then I also write a few of my commonly used to put on github: https://github.com/phelthas/lxmsnippetsuse :to copy this. codesnippetfile ~ /Library/Developer/Xcode/UserData/CodeSnippets/directory. Restart Xcode ~ Be sure to exit Xcode completely. The following are some highlights of Xcode, but not all of them ~ I think it's a bit cool to see a line of code with just a few letters ~ Currently supported: In @ interface, strong-> @ property (nonatomic, strong) type name; weak-> @ property (nonatomic, weak) type name; copy-> @ property (nonatomic, copy) type name; assign-> @ property (nonatomic, assign) type name; integer-> @ property (nonatomic, assign) NSInteger name; float-> @ property (nonatomic, assign) CGFloat name; array-> @ property (nonatomic, strong) NSArray * name; string-> @ property (nonatom Ic, copy) NSString * name; delegate-> @ property (nonatomic, weak) id <xxxDelegate> delegate; then add it to the file ~

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.