开发者

iphone NSLog when displaying an array

First when I am using nslog to log the contents of an array, why is it that some of the objects in the array (all strings) have quotation marks around them and some dont?

The log will look like:

"Item 1",
"item 2",
item3,
"item4"

This leads to my second part of the question...

The array in question is being used as a dataSource for a tableView, and only th开发者_运维技巧e only object that is showing up in the table view is the one without quotation marks.


Item3 doesn't contain a space and therefore doesn't require quotes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜