0

I have the following string :

[["hello","goodbye"]]

and I try to take "hello" and "goodbye" into two separates strings. I use:

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

so I cannot use @""" because " is a reserved character.

1 Answer 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 "

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

1 Comment

Thanks, I didn´t know I can use \" to indicate that is a reserved word

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.