如何使用Objective c获取数组列表中的第一个项目 [英] How to fetch first item in array list using Objective c
本文介绍了如何使用Objective c获取数组列表中的第一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有这样的数组列表
NSArray * listOfColorCode = [NSArray arrayWithObject:table.columnname ];
$ b $我得到这样的答案
[1,
2,
3,
4,
5
]
如何在if条件下获取第一次列表。
Hi
I have a array list like this
NSArray * listOfColorCode = [NSArray arrayWithObject:table.columnname];
i am getting an answer like this
[1,
2,
3,
4,
5
]
how to get list of first time in the if condition.
推荐答案
很难理解你的问题 - 但我认为你需要使用< br $>
Difficult to understand your question - but I think you need to use
code = [listOfColourCode objectAtIndex:0];
这篇关于如何使用Objective c获取数组列表中的第一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文