使用Xamarin.iOS(MonoTouch)进行Grid Layout的UICollectionView吗? [英] UICollectionView for Grid Layout with Xamarin.iOS (MonoTouch)?

查看:56
本文介绍了使用Xamarin.iOS(MonoTouch)进行Grid Layout的UICollectionView吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一个UICollectionView实现,用于在网格中显示视图(图像),如下所示.

I was wondering if there is a UICollectionView implementation around for displaying views (images) in a grid as shown below.

我开始使用UITableView进行构建,但是如果某项与其前任/后任不在同一行,它将变得非常复杂.

I started to build it with UITableView, but it is getting really complicated if an item doesn't fit in the same row with its predecessor/successor.

推荐答案

前几天,我碰到了这一点,这与您要执行的操作类似,并且可能会解决: http://pierceboggan.com/post/56951869926/pinterest-style-uicollectionviews-xamarin-ios

I came across this the other day, which is similar to what you want to do and may work out: http://pierceboggan.com/post/56951869926/pinterest-style-uicollectionviews-in-xamarin-ios

这是对UICollectionView的修改,使其可以像Pinterest使用的瀑布布局一样工作.

It is a modification of a UICollectionView made to work like the waterfall layout that Pinterest uses.

这篇关于使用Xamarin.iOS(MonoTouch)进行Grid Layout的UICollectionView吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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