IOS开发(一)

Code 4到4.2 模块发生可一些变化,让我们来看看是哪些:by小楠瓜饼

XCode 4.2.1 项目的模版截图:

 

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.

最常用的应用模版,XCode 之前版本的 View-Based Application 跟这个最像。

刚开始学习HelloWorld 就应该从这个开始。

只有一个页面

 

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(分割模式)

Master-Detail 模板能够创建和 Mail 相似的应用。如下,左边导航是 Master,右边每封邮件的细节是 Detail。

 

 

ios5之ipad开发之分割试图与弹出层的使用
http://dabailiang.blog.51cto.com/3498372/829542

 

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编程实现其中的功能。

如果你要创建3D游戏或者图形,可以使用这个模板。它会创建一个配置好的视图,专门用来显示GL场景,并提供了一个例子计时器可以令其演示动画。

 

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实现的。

选择“Page-based Application”项目模板就可以利用这个模板创建一种“基于页”的应用程序,

如下图,我们可以借用它实现如下的效果:

iOS5 Page-Based Application模板拟真翻页 pdf和ePub源码问题探讨
http://www.devdiv.com/forum.php?mod=viewthread&tid=107224 

 

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编辑了。

Tabbed 模板能够创建一个和 iTunes 类似的应用

提供了一种特殊的控制器,会沿着屏幕底部显示一个按钮栏。这个模板适用于像iPod或者电话这样的应用程序,它们都会在底部显示一行标签,提供一系列的快捷方式。

如何创建一个Tab bar Application (xcode 4.2中或者代码的方式)
http://blog.csdn.net/nicktang/article/details/6854996

 

 

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了,而且很少用到这个模板。

 

Xcode Utility Application 例子 数据传递与共享
http://hi.baidu.com/ghina/blog/item/d90bf8b3622d04b8d9335ae7.html

如下图,第一个页面右下角点击 i 按钮, 出现第二个页面。

 

Empty Application

This template provides a starting point for any application. It provides just an application delegate and a window.

这个就是原来的Window-Based Application.

如果其他模板都不适合你的需求,就只有用这个非常简单的模板了。它提供了一个简单的、带有一个窗口的应用程序。这是一个应用程序所需的最小框架,你可以用它作为开始来编写你自己的程序。

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值