Now, this is probably quite a simple thing, however, i've looked on the web and reckon i must be typing in the wrong thing when I do my research, so, I'm just wondering if anyone can advise.
Does anyone know how you put quotation " marks and return in the body of xcode. Every time I do a " it effects the code as the " is a tag, and also, when I put a return in the text to make a new paragraph it makes the build fail?
Any ideas guys?
Example code below:
@"Although sometimes it might get you into trouble, your curiosity will reward you today. Light-hearted social encounters are nice, but you’ve been waiting for a more substantial conversation, and you should get ready for a nice surprise. Keep your eyes out for someone wearing %@ and %@. They’ll also have %@ and %@. This stranger might be your complete opposite in many ways, but will definitely compliment your great sense of humour and keep your conversation on track.", @"prediction"
Now, this is probably quite a simple thing, however, i've looked on the web and reckon i must be typing in the wrong thing when I do my research, so, I'm just wondering if anyone can advise.
Does anyone know how you put quotation " marks and return in the body of xcode. Every time I do a " it effects the code as the " is a tag, and also, when I put a return in the text to make a new paragraph it makes the build fail?
Any ideas guys?
Example code below:
@"Although sometimes it might get you into trouble, your curiosity will reward you today. Light-hearted social encounters are nice, but you’ve been waiting for a more substantial conversation, and you should get ready for a nice surprise. Keep your eyes out for someone wearing %@ and %@. They’ll also have %@ and %@. This stranger might be your complete opposite in many ways, but will definitely compliment your great sense of humour and keep your conversation on track.", @"prediction"
Many thanks,
Chris
For quotations, the only work around I know of is to use an apostrophy. For returns (i'm assuming you want the text to begin on a new line) use /n.
Thank you for the above, using ' is a great idea, thank you for that suggestion.
Regarding the /n, i've put in the /n but nothing seems to happen? do I need it to be in ", for example "/n", if so, i've tried that and it unfortunately doesn't seem to work (again, i'm probably doing it wrong.