0

The string "\domain\path1\path2" was turned to "\\domain\\path1\\path2" after using AFNetwork to get the JSON response.

I got two comments "they are same",but the point is that when we use NSURL to create a remote url for EGOImageView to load, that will be different. The double \\ will get failed.

Why this happened ?

worldask
  • 1,837
  • 3
  • 22
  • 37
Forrest
  • 122,703
  • 20
  • 73
  • 107

1 Answers1

0

The backslash character is an escape character which is usually followed by a control character. The escape sequence for a literal backlash is \\. It's worth noting that the backslash is not a path separator in iOS. That would be a forward slash.

neilco
  • 7,964
  • 2
  • 36
  • 41