Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,当我使用 nslog 记录数组的内容时,为什么数组中的某些对象(所有字符串)在它们周围有引号而有些没有?
日志将如下所示:
"Item 1", "item 2", item3, "item4"
这导致我的问题的第二部分......
有问题的数组被用作 tableView 的数据源,只有在 table view 中显示的唯一对象是没有引号的对象。
Item3 不包含空格,因此不需要引号。