创建视图的时候
xcode4.2 xcode3.2.5
master-detail Application ---------- Navigation-based Application
OpenGL Game ---------- OpenGL ES Application
Page-Based Application ----------
Single VIEw Application ---------- VIEw-based Application
Tabbed Application ---------- Tab bar Application
Utility Application ---------- Utility Application
Empty Application ----------- Window-based Application
1.document-Based Application:
工程缺省说明如下:
This template provIDes a starting point for a document-based application. It provIDes an interface to store documents locally or in iCloud.
这个就是iOS新增的一个重要功能--云计算的一个体现,你可以创建一个基于master-detail Application类型的工程,不过加入了一个文档的概念,而且这些文档可以无缝保存到云端。
我的试验的结果是在当前情况下,在虚拟机上运行程序还不能保存到云端。
2.master-detail Application: This template provIDes a starting point for a master-detail application. It provIDes a user interface configured with a navigation controller to display a List of items and also a split vIEw on iPad.
很多有过一些开发经验的程序员会发现现在为iPhone的Navigation(导航模式)和为iPad的Split(分割模式)的工程模板没有了,其实这个地方就是这两种工程的入口,如果你选择是iPhone版的master-detail Application,其实际生成的就是Navigation(导航模式),如果选择iPad,则为Split(分割模式)
3.OpenGL Game 工程缺省说明如下:
This template provIDes a starting point for an OpenGL ES-based game. It provIDes a vIEw into which you render your OpenGL ES scene,and a timer to allow you to animate the vIEw.
这个是生成一个基于OpenGL的工程,值得说明的是,iOS已全面支持OpenGLES 2.0,并且使用shader编程实现其中的功能。
4.Page-Based Application: This template provIDes a starting point for a page-based application that uses a page vIEw controller.
这个是iOS5引入的一个新的类,page vIEw controller,其翻页效果是基于OpenGLES实现的。
5.Single VIEw Application: This template provIDes a starting point for an application that uses a single vIEw. It provIDes a vIEw controller to manage the vIEw,and a storyboard or nib file that contains the vIEw.
这个就是大家很熟悉的VIEw-Based Application,没啥好说的。
6.Tabbed Application: This template provIDes a starting point for an application that uses a tab bar. It provIDes a user interface configured with a tab bar controller,and vIEw controllers for the tab bar items.
这个就是大家熟悉的Tab bar Application,值得一提的就是,现在控制Tab bar内容及其相关VIEw controller都是使用代码来实现的。Tab bar从一开始就可以使用代码控制,不过大部分时候可以通过IB来定义,在XCode4.0之前和4.0中,IB在这个地方的使用方式不同。现在终于要放弃使用IB编辑了。
7.Utility Application:This template provIDes a starting point for a utility application that has a main vIEw and an alternate vIEw. For iPhone,it sets up an Info button to flip the main vIEw to the alternate vIEw. For iPad,it sets up an Info bar button that shows the alternate vIEw in a popover.
这个唯一新增的就是支持iPad了,而且很少用到这个模板。
8.Empty Application:This template provIDes a starting point for any application. It provIDes just an application delegate and a window.
这个就是原来的Window-Based Application.
UIGestureRecognizer的衍生类別有以下几种:
UITapGestureRecognizer 点一下 UIPinchGestureRecognizer 二指往内或往外拨动 UIRotationGestureRecognizer 旋转 UISwipeGestureRecognizer 滑动,快速移动 UIPanGestureRecognizer 拖移,慢速移动 UILongPressGestureRecognizer 长按 总结以上是内存溢出为你收集整理的XCode4.2基础知识全部内容,希望文章能够帮你解决XCode4.2基础知识所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)