`
mikixiyou
  • 浏览: 1088170 次
  • 性别: Icon_minigender_1
  • 来自: 南京
博客专栏
C3c8d188-c0ab-3396-821d-b68331e21226
Oracle管理和开发
浏览量:349934
社区版块
存档分类
最新评论

第一个iPHONE应用

    博客分类:
  • iOS
 
阅读更多

1.       开发工具

在本应用中,开发工具为苹果的Xcode4.2

To create the iOS application in this tutorial, you need Xcode 4.2. Xcode is Apple’s integrated development environment (or IDE) for both iOS and Mac OS X development. When you install Xcode on your Mac, you also get the iOS SDK, which includes the programming interfaces of the iOS platform.

If you don’t have Xcode installed on your Mac, visit the iOS Dev Center and download the Xcode 4.2 developer toolset (which includes the iOS 5 SDK). Double-click the package and follow the installer instructions.

To benefit from this tutorial, you must already have some familiarity with the basics of computer programming in general and with the Objective-C language in particular. If you haven t used Objective-C before, read Learning

Objective-C: A Primer before you begin this tutorial.

2.       应用

模板

根据开发工具的模板 基于视图的应用 创建一个hello world应用程序。

 

运行机制

 

程序执行 - 》调用 main.m 函数 - 》分配内存池 - 》调用 UIApplicationMain 函数

(这个函数 ,创建应用实例 (UIApplication) 和应用委托实 (HelloWorldAppDelegate) ,还扫描了配置文件 info.plist -

1 、加载 main storyboad 文件;

2 、从应用委托中得到 window 对象,或者说创建一个 UIWindow 实例,使之与应用委托协调;

3 、实例化 storyboard 的初始视图控制器,分配它作为 window 对象的根视图控制器 (root view controller)

之后, 发送 给应用 委托一 ”application:didFinishLaunchingWithOptions:”, 这个消息给委托一个机会,在应用显示出来之前去做其他工作,如附加的配置。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics