IOS5 one of the basic tutorials-----How to create a Xcode project

Source: Internet
Author: User

First, the basic knowledge of iOS

1. Only one application is running. On iOS, you can activate only one application and display it on the screen at any time.

2. There is only one window. A window that allows application operations only.

3. Access is restricted. You can read and write files only in the file system that iOS creates for your application. This area is called the application sandbox, where applications store a variety of data that needs to be stored, such as documents, preferences, and so on.

4. Limited response time.

5. Limited screen size.

6. Limited system resources.

7. Garbage collection is not supported. iOS introduces a new feature-automatic reference counting (Automatic Reference counting, ARC) to solve this problem.

Ii. creation of basic projects

Create a simple Hello World project.

Open Xcode-->file->new->new Project to create a new project. or Shift+command+n.

The single View application meaning is one of the simplest templates available here. The next step is to create the project name and the company logo, etc. look at the diagram first:

Product Name---project names

Company Identifier--Corporate identity

Class prefix--Prefix

Device Family--equipment (i.e., ready to be developed on that device)

Use StoryBoard--primarily in a single visual workspace and multiple views collaboration, each view is associated with its own controller.

Use Automatic Reference counting--automatic reference counting

InClude Unit tests--Unit test

Create local git repository for tho project to control the source code. Select a path to create the project.

After opening as:

To be familiar with this operating environment, it can be broadly divided into several parts

First: Toolbars

The middle section has Newhelloworld here is called the active view function: Displays the actions and processes that are currently occurring.

There are three sets of buttons on the right, and Editor (view) Standard view Auxiliary View the view is mainly to show, hide the Navigation Pane and the Utility pane (utility pane) located on either side of the editing pane organizer here you can find a lot of non-project-specific features

Navigation view on the left side of the toolbar

The project navigation----contains all the files for the project.

The symbol navigation----centralizes the symbols defined in all workspaces.

Search navigation----Perform a search on all files in the workspace.

Problem navigation----Any errors and warnings that occur during the build project will appear here. A list of the number of errors is displayed in the active view at the top of the window.

The debug navigation----into the main view of the debugging process.

The breakpoint navigation----View all breakpoints for all settings.

Log navigation----Keep the history of recent build results and run logs for developers.

Jump Bar

The leftmost special icon is actually a pop-up menu that displays recent files, unsaved files, corresponding files, parent classes, and subclasses.

The left and right arrows indicate that the developer goes back to the previous file or to the next file.

The utility bar on the right will change depending on what is displayed in the pane.

Folder structure for project navigation

Newhelloworld--Contains most of the code written and the files that make up the user interface of the application.

Supporting files-Contains the required source code files and resource files for non-object-c classes.

Frameworks--a special library that also contains resources such as images and sound files.

Products--Contains the applications that were built when the project was built.

File's owner--the document owner represents the object that loaded the nib file from disk.

First Responder-the object to which the initial responder user is currently interacting.

View-icon represents an instance of the Object-c class

File Template Library-contains some file templates.

Code Snippet Library-contains code snippets.

Object Library--contains a variety of reusable objects.

Media Library-Includes all of the user's media files.

Called an inspector. The most important time for the fourth object is to modify the text font size, color, and so on for the Objects Property Inspector (attributes Inspector).

Drag a lable control from the library, double-click to change to Hello World command+s save Command+r Run. There came the Hello world!!!!!!, which the beginner was proud of.

The creation of the app icon.

A long time did not write the main is their own binding is not enough, in addition to the previous study of the book xcode3.2.5 so slow progress. is now xcode4.2 version, although slightly different, but still let me learn a lot of things.

IOS5 one of the basic tutorials-----How to create a Xcode project

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.