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"
これは質問の私の2番目の部分につながります...
問題の配列はtableViewのdataSourceとして使用されており、テーブルビューに表示されているオブジェクトは引用符のないオブジェクトのみです。
Item3 にはスペースが含まれていないため、引用符は必要ありません。