objective c - When I paste a string into Xcode I always get an error and have to re-type it -


this happens every time paste line of code containing string xcode. example when pasted xcode:

simonlabel.text = @"good job!"; 

i received error saying there "unexpeceted '@' in program"

if delete , retype way pasted not error.

there many problems can appear there:

  1. " can different character expect

  2. (space) can different character expect

  3. invisible characters. won't see in editor @ got there copy-paste.

all these problems can happen because

  1. you copy website different encoding (or badly writter website)
  2. you copy smart editor (e.g. ms word, open office) replaces of characters match locale (e.g. quotation marks) or replaces/add spaces based on grammar , word wrapping (e.g non-breaking space).

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -