如何在iPhone视图中显示类似电子表格的表格? [英] How do you display a spreadsheet-like table in an iPhone view?

查看:91
本文介绍了如何在iPhone视图中显示类似电子表格的表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在视图中显示电子表格.无需编辑电子表格的单元格,并且电子表格将始终具有相同数量的行和列.(电子表格单元格中将填充用户在其他视图中生成的财务数据)

I need to display a spreadsheet in a view. There's no need to edit the cells of the spreadsheet, and the spreadsheet will consistently have the same number of rows and columns. (The spreadsheet cells will be populated with financial figures generated by the user in a different view)

我该怎么做?UITableView似乎不足,因为此表中需要显示大约70-80个单元格.

How would I do this? A UITableView seems inadequate, as there need to be around 70-80 cells displayed in this table.

推荐答案

如果单元格不需要可编辑,它们不包含图像,并且单元格的数量也不大,则可以只使用标签或在UIView的框架矩形网格内绘制文本,然后在UIScrollView内显示更大的视图.

If the cells don't need to be editable, they don't contain images, and the number of cells isn't large, you could just use labels or drawn text inside a grid of framed rectangles in a UIView, and display that larger view inside a UIScrollView.

这篇关于如何在iPhone视图中显示类似电子表格的表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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