IOS软件开发浅谈
iPhone OS系统概述
Cocoa Touch:用于构建图形化的事件驱动应用程序(UIKit)
Media:添加音频、视频、图形和动画的框架
Core Services:访问核心服务的框架(通讯录/定位/框架,数据库,文件传输)
Core OS:访问系统内核的框架(网络协议/安全)
iPhone SDK简介
Xcode:IDE
Instruments:监控内存利用率和性能指标
Dashcode:基于Web的独立应用程序
仿真器Simulator:创建和测试应用程序
IB(Interface Buider):快速图形化布局用户界面
Tools: Xcode,Interface Buider
Frameworks:Foundation,UIkit
Language: Objective-C
#import <>
int main( int argc, const char *argv[] ) {
printf( "hello world\n" );
return 0;
}
#import <Foundation/>int main(int argc, char* argv[]){ NSLog(@"Hello Cocoa From Console"); return 0;}
MVC模型视图控制器
Model
Manages the app data and state
Not concerned with UI or presentation
Often persists somewhere
Same model should be reusable, unchanged in different interfaces
View
Present the Model to the user in an appropriate interface
Allows user to manipulate data
Does not store any data (except to cache state)
Easily reusable & configurable to display different data
Controller
Intermediary between Model & View
Updates the view when the model changes
Updates the model when the user manipulates the view
Typically where the app logic lives.
IOS软件开发浅谈(精选) 来自淘豆网m.daumloan.com转载请标明出处.