@property (nonatomic, copy) NSString * @property (nonatomic, copy) NSString * @property (nonatomic, copy) NSString * @property (nonatomic, copy) NSString *operateType;
@property (nonatomic, copy) NSString
Code Snippets
This is Code Snippets, which aims to enable programmers to input frequently-used Code Snippets as quickly as possible to improve programming efficiency. This function is introduced from Xcode4. We can set the display Code Snippets in the following places:
There are many Xcode code snippets. The switch in the above example is one of them. Double-click a specific Code Snippet to view the details of the Code Snippet. Click the Edit button to view more information.
Code Snippets creation process.
Code Snippets.
@property (nonatomic, copy) NSString *<#name#>;
Code Snippets. Code Snippets is created in the Xcode area. After the creation, the effect is as follows: [attribute description ]:
- The title of the Code Snippets;
- Description text of Code Snippets;
- Code Snippets platform with three options: IOS/OS X/All
- Code Snippets shortcut, such as sw used in the second part of this article to write the switch Code segment. Here, set the shortcut for Attribute setting to pc
- Code Snippets, such as all locations, and the header file is medium. Of course, you can add multiple supported locations.
- Code Snippets effect preview.
Code Snippets: Take the defined pc attribute Code Snippets as an example: Find the Code Snippets that we need to use, and drag the Code Snippets with the left mouse button to the appropriate position.
By default, Code Snippets is stored in the following directory:
~/Library/Developer/Xcode/UserData/CodeSnippets
Code Snippets backup can also be copied directly to different computers for use, so there is no pressure to collaborate between multiple computers.