开发者

Is there a way to stack up the cells of a table side by side?

What i mean by this is that cell1 would be top left. Cell2 would be top right. Cell 3 would be below cell 1, cell 4开发者_Python百科 would be below cell 2 etc..

Is there a way to do this?


UITableView does not support this out-of-the-box. You can fake it, but you might also want to try using something like AQGridView.


The UITableView only allows for one column, so it's really more of a stack or list than a table. To do what you are talking about you will need to create a custom UITableViewCell either in Interface Builder or code that "fakes" columns through layout, but you will only ever have one cell per row.

From the Documentation:

A table view in the UIKit framework is limited to a single column because it is designed for a device with a small screen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜