OC basics-Xcode template modification and document installation, oc-xcode

Source: Internet
Author: User

OC basics-Xcode template modification and document installation, oc-xcode

Modify a project template

A project template is an entry selected during project creation. Xcode generates a fixed-format project based on the selected entry.

 

How to modify a project template

Find Xcode and right-click "show Package content"

Open the "/Applications/Xcode. app/Contents/Developer/Library/Xcode/Templates/Project \ Templates/Mac/Application" folder

Find all the folders corresponding to the OS X Application interface in the/Application folder.

 

Modify the Command Line Tool Template

Open the "TemplateInfo. plist file" and find that it corresponds to the content in "Change Command Line Tool template ".

Modify content in "TemplateInfo. plist file"

 

Modify Class header information

Find the class file template corresponding to the corresponding class. (because the class is manually created after the project is created, rather than automatically created with the Project Creation, modifying the class file template and the Project template is not modifying the same file)

Open the "/Applications/Xcode. app/Contents/Developer/Library/Xcode/Templates File Templates/Source/Cocoa Class. xctemplate" folder

Find the folder that inherits Objective-C

Modify the corresponding Template File

/// ___ FILENAME ___ // ___ PROJECTNAME ___ // Created by ___ FULLUSERNAME ___ on ___ DATE ___. // ___ COPYRIGHT ___ // main. m // encapsulate member variables /// Created by dx on 15/8/29. // Copyright (c) 2015 dx. all rights reserved. //

Xcode document Installation

Open Xcode and click DownLoads to download the document.

  • Find the backup document
    • Com.apple.adc.documentation.AppleiOS8.0.iOSLibrary.doc set
  • Find the DocSets directory/Applications/Xcode. app/Contents/Developer/Documentation/DocSets
    • Copy the file to this directory.
  • Exit and reopen Xcode
  • If not,/Users/your username/Library/Developer/Shared/Documentation/DocSets to check whether a version with the same name or version update exists and delete it.
  • Note: if there is a document with a higher version in the folder, the document with a lower version will not be displayed.

Keyword description

  • Getting Started-Getting Started. Generally, it is intended for beginners. It is recommended for beginners to see that there are some things to establish concepts. With these things, it is easier to learn later.
  • Guides-guide, which is the coolest and best part of Xcode. If you learn to read the guide, you do not need to buy books in most cases. The instructions in the Xcode document are one by one. Starting from one problem or one aspect of the system, we will introduce in detail how to use the Cocoa library. Generally, programmers are familiar with Reference, which is something that comes out when you look up documents of a class, method, or function. There is no context for those things. Guides helps you sort out the learning context.
  • Reference-references. Documents organized by classes in one framework contain the usage of each method.
  • Release Notes -- Release description. What are the new features of a new iOS version? For more information about the new iOS version, see these documents.
  • Sample Code -- Sample Code. Some sample code officially provided by apple helps you learn certain technologies and Some APIs. It is strongly recommended that you refer to this document when learning. On the one hand, it is difficult to understand the specific implementation. On the other hand, these sample codes are written by Apple engineers. From the changes in the sample code, you can see that the Code style officially recommended by Apple changes.
  • Technical Notes-Technical Notes. Some technical topic articles can be viewed when you are free. There are often some gains.
  • Technical Q & A-common Technical Q &. These are some common questions and answers in the technical community.
  • Video-Video. Currently, it is mainly for WWDC videos, which are actually viewed on the developer's website. This is a shortcut. If you want to study it in depth, you must not miss it. You can not only learn the technology, but also practice English.
    • The Reference, Release Notes, Sample Code, Technical Notes, and Technical Q & A are generally only for future Reference. It mainly depends on Getting Started and Guides.

 

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.