3

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 the only object that is showing up in the table view is the one without quotation marks.

1
  • post some code where you populate the array.. Commented Jul 12, 2010 at 6:41

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.