目标
到现在开始,正式开始编写iPhone程序了。
这里将使用Xcode创建一个小型的iOS应用,在模拟设备屏幕上显示文本“Hello World!”。
实现的效果:
内容
1.开发环境
虽然iOS9已经出了,但这里还是以iOS8来做的开发教程。
Xcode7终于可以直接真机调试了,福音啊,但是这里还是Xcode6来写的哦。
操作系统:OS X 10.9.5
编译器 :Xcode 6.1.1
2.在Xcode中创建项目
安装Xcode俺就不说了。
2.1创建项目
1)打开Xcode,会出现欢迎界面
点击左边的Create a new Xcode project 创建一个新的项目。
欢迎界面中,左边是创建项目,右边是近期打开的项目。
2)选择项目模板。
iOS应用开发所以选择iOS下的Application(应用),从中选择Single View Application(空视图应用)。
Application->Single View Application->Next
3)填写新建项目信息。
Product Name:(项目名称)
Organization Name:(组织名称)
Organization Identifier:(组织ID)一般为公司网址倒过来写,Java的包名一样。
Bundle Identifier:(包ID)=组织+程序名,程序开发包的ID。
Language:(开发语言)有OC和Swift,这里选择OC,Swift以后介绍。
Device:(开发的设备)
4)选择项目文件保存位置。
5)Xcode项目窗口。
这就是项目创建完成后出现的界面了,和所有的IDE都差不多。