如何创建一个多维数组? [英] How do I create a multidimensional array?

查看:124
本文介绍了如何创建一个多维数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要保持90x90阵列数据的iPhone应用程序。我怎样才能保持这个数据?一种制造多维数组为这个大表的溶液。或者是有一个其他的解决方案。

I need to keep 90x90 array data for iphone app. how can i keep this data? making an multi-dimensional array is a solution for this big table. or is there an other solution.

推荐答案

如果矩阵始终是90x90,那么你应该只使用C数组。

If the matrix is always 90x90, then you should just use C arrays.

除非你有各地传递矩阵,使用predicates搜索特殊需要,还是需要NSArray中的一些其他功能,则保持简单。

Unless you have a special need for passing the matrix around, searching using predicates, or need some other feature of NSArray, then keep it simple.

这篇关于如何创建一个多维数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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