开发者

iphone NSLog when displaying an array

开发者 https://www.devze.com 2023-01-06 23:19 出处:网络
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?

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

精彩评论

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