I have to make a web request but its format creates problem for me.
I requirewww.abc.com?userID="YourUserID"
I am creating following ...
NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.abc.com?userID=%@",myID]开发者_如何学Python];
... which will create a url with string www.abc.com?userID=12345
.
www.abc.com?userID="12345"
I tried to put following:
NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.abc.com?userID="%@"",myID]];
[NSURL URLWithString:
[NSString stringWithFormat:@"http://www.abc.com?userID=\"%@\"", myID]];
精彩评论