Storyboards教程 整理Storyboards Tutorial

本文章除介绍后图片 其它的纯手写

如转载文章 请注明出处

李月喜 编辑

2015年6月23日 



推荐

(raywenderlich书友会 群名:raywenderlich 群号:426981364) 

raywenderlich吧   (百度贴吧)



iOS StoryBoards起于iOS5 系统升级进入过一定的优化


//1 以下是raywenderlich 关于从iOS7基于StoryBoards开发简单入门(现在做开发一般从兼容iOS7开始做的 所以复制了两个iOS开始的)
http://www.raywenderlich.com/50308/storyboards-tutorial-in-ios-7-part-1
http://www.raywenderlich.com/50310/storyboards-tutorial-in-ios-7-part-2
//2 关于StoryBoards的中高级部门 分别在raywenderlich的书籍 《iOS5 By Tutorials》和《iOS6 By Tutorials》 有相关的章节进行阐述(raywenderlich的书一般相关技术一出现马上做 然后随系统升级 有相关技术更新 再加到新书中 所以raywenderlich关于StoryBoards的使用教程一直从iOS5开始)


(1)下面是iOS5 By Tutorials 中关于StoryBoards的章节




chapter 4 的开章介绍
Storyboarding is an exciting new feature in iOS 5 that will save you a lot of timebuilding user interfaces for your apps. To show you what a storyboard is, I’ll let apicture do the talking. This is the storyboard for the app that you will be making inthis chapter and the next:

You may not know exactly yet what the app does but you can clearly see whichscreens it has and how they are related. That is the power of using storyboards.

If you have an app with many different screens then storyboards can help reducethe amount of glue code you have to write to go from one screen to the next.Instead of using a separate nib file for each view controller, your app uses a singlestoryboard that contains the designs of all of these view controllers and therelationships between them.

Storyboards have a number of advantages over regular nibs:

• With a storyboard you have a better conceptual overview of all the screens inyour app and the connections between them. It’s easier to keep track of

raywenderlich.com Page 116

iOS 5 by Tutorials Chapter 4: Beginning Storyboardseverything because the entire design is in a single file, rather than spread out

over many separate nibs.

• The storyboard describes the transitions between the various screens. Thesetransitions are called “segues” and you create them by simply ctrl-dragging fromone view controller to the next. Thanks to segues you need less code to take careof your UI.

• Storyboards make working with table views a lot easier with the new prototypecells and static cells features. You can design your table views almost completelyin the storyboard editor, something else that cuts down on the amount of codeyou have to write.

Not everything is perfect, of course, and storyboards do have some limitations. Thestoryboard version of Interface Builder isn’t as powerful as the old nib editor andthere are a few handy things nibs can do that storyboards unfortunately can’t. Youalso need a big monitor, especially when you write iPad apps!

If you’re the type who hates Interface Builder and who really wants to create hisentire UI programmatically, then storyboards are probably not for you. Personally, Iprefer to write as little code as possible – especially UI code! – so this tool is awelcome addition to my arsenal.

You can still use nibs with iOS 5. Nib files aren’t suddenly frowned upon now thatwe have storyboards. If you want to keep using nibs then go right ahead, but knowthat you can also combine storyboards with nibs. It’s not an either-or situation.

In this tutorial you’ll take a look at what you can do with storyboards. You’re goingto build a simple app that lets you create a list of players and games, and rate theirskill levels. In the process, you’ll learn the most common tasks that you’ll be usingstoryboards for on a regular basis! 






chapter 5 的开章介绍
In the last chapter, you got some basic experience with storyboarding. You learnedhow to add view controllers into a storyboard, transition between them withsegues, and even create custom table view cells quite easily!

In this chapter, you’re going to learn even more cool things you can do withstoryboards in iOS 5. We’ll show you how to modify the app to edit players, addmultiple segues between scenes, implement custom segue animations, usestoryboards on the iPad, and much more!

This chapter picks up where you left off last time. Open up your Ratings project inXcode and let’s get started! 


(2)

下面是iOS6 By Tutorials 中StoryBoards的章节(里面介绍的containView大家不用管了 iOS7及以后好像砍了)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值