iOS tableView的时间在左边 [英] iOS tableView with time at the left
问题描述
我正在构建一个iOS应用程序,它将受益于从UITableViewCell左边的07:00到16:00(由用户指定)的时间,例如:
I'm building an iOS app that would benefit from having the time from say 07:00 to 16:00 (specified by user) on the left of a UITableViewCell like this:
>
什么是这种行为的最佳方法,包括在几个细胞上彩色矩形的可能性?我想象你会设计一个自定义单元格,但它是彩色的矩形(在iOS日历约会)逻辑,我不知道如何延伸,因为它拉伸几个单元格。
What would be the best approach for such a behaviour, including the possibility of a colored rectangle over several cells? I imagine you would design a custom cell but it's the colored rectangle (appointments in the iOS calendar) logic that I'm not sure how to go about as it stretches over several cells.
有人可能指向我正确的方向,给任何链接或东西来踢我吗?
Could someone point me in the right direction, give any links or something to kick me off? Just an explanation of how one would go about this is helpful.
非常感谢!
Erik
Thanks alot! Erik
推荐答案
我想你需要看看UICollectionView,提供强大的布局apis这种问题比UITableView。
I think you need to look into UICollectionView, with provides powerful layout apis for this kind of problem than UITableView.
这些材料可能对您有所帮助:
There are a lot to dig into though.
https://github.com/erichoracek/MSCollectionViewCalendarLayout
这篇关于iOS tableView的时间在左边的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!