简体   繁体   English

像轮播视图一样的ibook

[英]ibooks like carousel view

I want to create and app with carousel kind of view, with images in rows and columns, where number of columns are fixed, but number of rows varies. 我想创建和应用轮播类型的视图,行和列中的图像,其中列数是固定的,但是行数却有所不同。 when user clicks on an image it opens up a detailed view. 当用户单击图像时,它将打开一个详细视图。 My initial approach is to used tableview, with one cell as a row, but here tricky part is calculating the column, which I am doing by tagging the views. 我最初的方法是使用tableview,将一个单元格作为一行,但是这里棘手的部分是计算列,这是通过标记视图来完成的。 Is my approach is right or is there is any other better way of doing it. 我的方法是正确的,还是有其他更好的方法可以做到?

You could use AQGridView to handle this I think 您可以使用AQGridView来处理此问题

https://github.com/AlanQuatermain/AQGridView https://github.com/AlanQuatermain/AQGridView

It works very similar to UITableView by using a dataSource and delegate 通过使用dataSourcedelegate它的工作原理与UITableView非常相似

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM