IPhone ProgrammingThe introduction course is the content to be introduced in this article. Before developing the iphone, you must first understandIphoneProgramming. Let's first look at the details. Mac is not only a gorgeous appearance, but also a solid and beautiful heart.
First, I posted a picture to introduce Layers in Mac system programming.
The layers in the figure provide some calling interfaces for developers. Through these interfaces, we can call some functions or frameworks of the system to implement the functions we need.
1. Kernel & Driver
This layer provides some hardware interfaces, such as how to use some features of the hardware to complete some functions.
2. Core OS
Provides some underlying system services that cannot be called at the core service layer. Calls such as AGL and OpenCL
3. Core Services
At this layer, you can obtain some basic services provided by Mac OS X, such as reading files and configuring network socket,
4. Media
This layer provides some multimedia methods
5. Cocoa
An event-driven user interface is implemented. By programming through Cocoa, you can use very few code to complete beautiful functions without worrying about too many details.
Cocoa Touch is used for iPhone OS because mobile devices do not drag windows like Mac OS X, and there is no menu bar.
It is a simple window and supports touch.
Tools
Apple's IDE is very beautiful and practical, making programming completely a pleasure.
Xcode is used to write code, and Interface Builder is used to create interfaces,
They work well together.
CocoaThe framework is implemented using Objectice C encoding, so we basically use Objective C language when writing code.
Summary:IPhone ProgrammingThe introduction course is complete. I hope this article will help you.