How can I create an interface similar to an Excel spreadsheet on the iPhone? [duplicate]

天涯浪子 提交于 2020-01-10 03:13:08

问题


I want to develop an iphone interface, using objective-c, which behaves like an Excel sheet.

It would display a grid which can be scrolled vertically as well as horizontally but during a vertical scroll, the first row will freeze, and during a horizontal scroll, the first column will freeze.

How can this be done? I am new to iphone development.


回答1:


I'm not familiar with the iPhone's UI classes, but here is what I would do from a conceptual point of view:

Create three separate scrollviews (rowLabels, colLabels, and grid), and then simply update the vertical scroll position of rowLabels and the horizontal scroll position of colLabels whenever the main grid view is scrolled in any direction.



来源:https://stackoverflow.com/questions/661148/how-can-i-create-an-interface-similar-to-an-excel-spreadsheet-on-the-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!