Objective-C 2.0 with cocoa Foundation-1, Preface

Source: Internet
Author: User
ArticleDirectory
    • 1. Preface
1. Preface

I believe that the iPhone will soon be released in China. Like the iPod Touch we can buy in China through regular channels, the iPhone is also an exciting product. When the iPhone is releasedProgramIt also popped up in iTunes like mushrooms.

In the future, you may consider buying an iPhone to experience Apple's creative applications. You may considerCommunityPeople from all over the world show your extraordinary ideas. Of course, you can also get some unexpected benefits through your ideas.

OK. You may not be able to wait for development. But let's wait and let's recall how the original movie was shot. This is very important because it is similar to iPhone development.

At first, because the equipment was relatively primitive, it required a high level of technology to film. At that time, the director of the film was basically a person who could operate the equipment skillfully. With the improvement of equipment, it is easy to use. Therefore, the use of equipment is not the only factor that determines the quality of a movie. Instead, it is replaced by stories or creative ideas of a movie.

The same is true for iPhone development. Of course, everything is difficult to start from getting started to getting started. As you learn more, you will feel that developing an iPhone application is simple and easy, at that time, your main weapon to win was not development technology, but your creativity. For you, what I write here is related to "photography equipment", that is, how to use the iPhone platform to develop applications.

The development language of the iPhone is objective-C. Objective-C is the main language for iPhone development. After mastering the basic syntax and data structure of objective-C, you need to familiarize yourself with the iPhone SDK. It is difficult for me to introduce everything clearly in an article, so I plan to divide it into two themes: Objective-C and iPhone development.

This series will focus on objective-C. Of course, any development language cannot be separated from the runtime environment, and objective-C is no exception. In this series, we will introduce some features of the SDK, including data structures, such as nsstring and nsarray. You may feel a bit confused when you see the nsstring and nsarray terms, but it doesn't matter. With the in-depth introduction of this series, you will find that you like these things very much.

1.1, who will consider reading this series

If you are interested in the iPhone, if you want to show your creativity to people around the world, if you are curious, if you are planning to make a living by developing an iPhone program, if you think Apple is cooler than Windows, if you don't know Apple, it is a little less fashionable, you can consider reading this series.

A veteran can also consider taking a moment to read the article and share it with the author. The article published by the author is a public welfare writing. It aims to introduce some basic knowledge about iPhone development. If you can provide valuable comments, I would be very grateful.

1.2. Items to be prepared

To do well, you must first sharpen your tools. Analects of Confucius-wei linggong

First, you need an Apple Computer. Of course, this is not a required condition. If you can successfully install Mac OS on your intel PC, ignore this one.

Second, you need to download the development tool xcode from the apple website. Note: xcode is free of charge, but you need to register an account to download it. Since xcode is updated from time to time, if your Mac OS does not support your downloaded xcode, you may need to consider buying the latest Mac OS.

Third, you must have at least C, C ++, or Java background knowledge. However, if you don't have one, you don't have to worry about it. I believe you can understand it after reading the author's article.

The last thing we need is not necessary. Of course, it will be better if we have one. These are developer accounts (pay-as-you-go), iPhone (available for free in some countries, but what will happen in China, I am not very clear), and iPod Touch (purchase required ).

1.3. about the author's Writing

I am using my spare time to write, so I cannot guarantee the article release schedule. Please forgive me. However, I will do my best to finish writing in a short time.

Due to the limitations of the author's experience, this tutorial will inevitably encounter omissions, errors, and even absurd places, so please criticize and correct them.

For completed chapters, the author will also consider making appropriate changes based on some changes or errata conditions or comments.

In each chapterCodeExamples, the author focuses on the basic concepts, so the code will inevitably be incomplete or wrong, students can freely use the code written by the author in their own code, however, the author does not bear the losses caused by code errors. When reading this tutorial, you can directly download the sample code for running. However, to familiarize yourself with the coding environment and code specifications, I strongly recommend that you enter the code yourself according to the tutorial.

Objective-C has many concepts, and many of them are intertwined. For example, to explain concept A, we need the knowledge of concept B. To explain concept B, we need the knowledge of concept C. To explain concept C, we need the knowledge of concept. This will cause some trouble for the writing of this tutorial. Obviously, I cannot clearly describe all the concepts in a chapter, so each chapter has a focus, when reading this article, you must grasp the focus of each chapter and ignore some new concepts and knowledge unrelated to the content of this chapter.

1.4. Structure of this series

Chapter 2, that is, this chapter

Chapter 2, from Hello, world! Start


Chapter 2, class description and definition

Chapter 2, inheritance

Chapter 2: class type, selector and function pointer

Chapter 2: nsobject's mysteries

Chapter 2: object initialization and scope of instance variables

Chapter 2 class methods and private methods

Chapter 2 Memory Management

Chapter 1 Memory leakage so far

Chapter 2, strings, arrays, and dictionaries

Chapter 2, attributes

Chapter 2 Category)

Chapter 2 protocol)

Chapter 2, delegate

Chapter 2, thread

Chapter 2, File System

Chapter 2: Data serialization and saving of user data

Chapter 2 network programming

Chapter 2, XML Parsing

The Section with the connection above is completed, otherwise it is not released. The content of published lectures may be updated, or even the structure of this series of lectures may change.

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.