如何在iPhone上创建类似于Excel电子表格的界面? [英] How can I create an interface similar to an Excel spreadsheet on the iPhone?

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

问题描述

我想开发一个iphone界面,使用objective-c,其行为类似Excel表格。

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.

如何做到这一点?
我是iphone开发的新手。

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

推荐答案

我不熟悉iPhone的UI类,但这里是从概念的角度来看我会做什么:

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

创建三个单独的滚动视图(rowLabels,colLabels和grid),然后只需更新rowLabels的垂直滚动位置和每当主网格视图向任何方向滚动时,colLabels的水平滚动位置。

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.

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

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