如何在不使用故事板的情况下创建UICollectionView? [英] How to create UICollectionView without using the storyboard?

查看:133
本文介绍了如何在不使用故事板的情况下创建UICollectionView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上找到了一些很好的UIcollectionview教程

I have found some nice tutorials of UIcollectionview over the net

http://www.raywenderlich.com/22324/beginning-uicollectionview-in-ios-6-part-12

http://ashfurrow.com/blog/uicollectionview-example

是否可以在没有故事板的情况下使用collectionview?

Is it possible to use the collectionview without the storyboard?

有什么优缺点使用带集合视图的故事板?

What are the pros and cons of using the storyboard with collectionview?

推荐答案

是的。它可以以任何一种方式完成。请参考以下示例。

Yes. It can be done either way. please refer to following examples.

更新:这个(第一个)例子更适合这个问题..
http://adoptioncurve.net/archives/2012/09/a-simple-uicollectionview-tutorial/

UPDATE: This(1st) example is more suitable for the question.. http://adoptioncurve.net/archives/2012/09/a-simple-uicollectionview-tutorial/

http://blogs.captechconsulting.com/ blog / paul-dakessian / ios-6-tutorial-getting-started-collection-views

http://invasivecode.tumblr.com/post/34581461219/an-introduction-to-collection-views

我不是很确定,但除了易于实现之外,使用故事板不应该有任何利弊。

I am not very sure but there shouldn't be any pros and cons for using storyboards apart from its easy to implement.

这篇关于如何在不使用故事板的情况下创建UICollectionView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆