I am trying to get USERNAME and PASSWORD from the user and put them inside of a string.
var id = "1"
var pw = "password"
Here is my code:
parser = NSXMLParser(contentsOfURL: NSURL(string : "http://blablabla.com/UNAME&PW")!)!
But it creates this result:
"http://blablabla.com/\id\&\pw\"
How do I put the values of id
and pw
inside of a string?