OC Base--xcode template modification and documentation installation

Source: Internet
Author: User

Modify a project template

A project template is an item that you select when you create a project, and Xcode generates a fixed-format project based on the selected entry.

How to modify a project template

Find Xcode, right-click "Show Package Contents"

Open the "/applications/xcode.app/contents/developer/library/xcode/templates/project\ Templates/Mac/Application" folder

Find all folders in the/application folder that correspond to the OS X application interface

Modify Command line tool template

Opens "Templateinfo.plist file" discovery and "command line tool template" in the content corresponding

Modify the contents of the "Templateinfo.plist file"

Modifying header information for a class

Locate the class file template corresponding to the corresponding class. (Because the class was created manually after the project was created, rather than automatically created as the project was created, modifying the class file template and project template does not modify the same file)

Open the/applications/xcode.app/contents/developer/library/xcode/templates File Templates/source/cocoa Class.xctemplate "folder

Locate the corresponding folder for the inherited Objective-c

Modify the corresponding template file

////___filename___//___projectname___////Created by ___fullusername___ on ___date___.//___copyright___//////main.m//encapsulation of member variables////Created by DX on 15/8/29.//Copyright (c) 2015 DX. All rights reserved.// 

Xcode Document Installation

Open Xcode, Preferences click downloads Download document

    • Locate the backed up document
      • Com.apple.adc.documentation.appleios8.0.ioslibrary.docset
    • Locate the Docsets directory/applications/xcode.app/contents/developer/documentation/docsets
      • Copy files to this directory
    • Exit re-open Xcode
    • If not,/users/your user name/library/developer/shared/documentation/docsets, see if there is a name or version of the update, delete it
    • Note: If a document with a higher version in the folder does not show the lower version of the document

Keyword description

    • Getting started--Beginners, generally speaking, is for the full novice to see. Suggest beginners to see, there are some ideas to build something, with these ideas to build things, the latter is easier to learn. The
    • guides--Guide, which is the coolest and best part of Xcode, learns to look at the guide and in most cases does not have to buy books at all. The guide in the Xcode document is a problem, starting with a question, or one aspect of the system, detailing how to use the Cocoa Library documentation in step-by-step directions. The general programmer is familiar with is reference, is you look up a class, method, function of document time, come out of thing. Those are actually 1.1 points of fine knowledge, light look at those things are completely without context. and guides is to help you tidy up the context of learning.
    • reference--Resources. A document that is organized into a single class with a framework that contains the methods used for each method. The
    • release notes--release Notes. A new version of iOS brings new features, such as familiarity with new iOS, and comparison of different iOS version APIs, all of which require reference to these documents. The
    • sample code--example code. Apple has provided some sample code to help you learn some of the techniques of some API. It is very strongly recommended to learn the time reference, on the one hand to see the document sometimes it is difficult to understand how the actual implementation is. On the other hand, these sample codes are written by Apple's engineers, and you can see the evolution of the code style that Apple recommends from the changes in the sample code.
    • Technical notes--Technical notes. Some technical topic articles, you can browse when you are free. There are often some gains.
    • Technical q&a--Common technical questions and answers. Here are some common questions and answers in the technical community.
    • video--Video. Currently mainly WWDC video, is actually logged on to the developer site to browse, here is the shortcut. Want to study deeply, must not miss, a lot of see, not only can learn technology, can also practice good English.
      • Reference, Release notes, Sample Code, Technical notes, Technical q&a in this box are generally only for reference. The main to see is getting started and guides.

OC Base--xcode template modification and documentation installation

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.