0

我有以下字符串:

[["hello","goodbye"]]

我尝试将“hello”和“goodbye”分成两个单独的字符串。我用:

NSArray *str = [mystring componentsSeparatedbyString:@"""];

所以我不能使用@""",因为"是保留字符。

4

1 回答 1

3

You literal string is [["hello","goodbye"]] ?

Also you can use " if you do \" I do believe. Why not use the , and strip the "

于 2012-07-18T16:07:58.310 回答