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

查看:22
本文介绍了使用 Xamarin.iOS (MonoTouch) 进行网格布局的 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-in-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) 进行网格布局的 UICollectionView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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