无法更改UICollectionViewController的UICollectionView大小 [英] Can´t change UICollectionView Size of UICollectionViewController

查看:61
本文介绍了无法更改UICollectionViewController的UICollectionView大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道使用UICollectionViewController时是否可以在情节提要上更改CollectionView Contentsize。我无法更改大小,它是固定的。我想添加一个Tab导航,但这是不可能的,因为UICollectionView不能在Storyboard上调整大小。
我该怎么做?

I am wondering if it is possible to change the CollectionView Contentsize on the Storyboard, when using UICollectionViewController. I can´t change the size, it is fixed. I would like to add a Tab navigation, but this is not possible, since UICollectionView cant be resized on the Storyboard. How can I do this?

我也尝试使用UIViewController并将委托放入标题<中。 ...>,似乎有麻烦。我会很感激您的帮助。
非常感谢。!

I also tried to use UIViewController and put the delegates into the header < ... >, seems to have troubles. I would be thankful for help. Thank you very much.!

无法在UICollectionViewController屏幕截图中修改UICollectionView的高度

推荐答案

是的...大小不能使用UICollectionViewController时更改。您必须将UICollectionView添加到UIViewController。然后,您可以更改收藏夹视图的大小。

Yes...the size can't be changed when using a UICollectionViewController. You must add a UICollectionView to an UIViewController. Then you can change the collection view's size.

这篇关于无法更改UICollectionViewController的UICollectionView大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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