如何连接 NSString
URL?例如:
http://isomewebsite.com/username=[someuservariable]&password=[somevariable]
最佳答案
尝试使用下面的代码。
NSString* myURLString = [NSString stringWithFormat:@"somewebsite.com/username=%@&password=%@", myUserName,myPassword];
NSURL *url = [NSURL URLWithString:myURLString];
这里的博客教程将帮助您了解更多关于 Handling url authentication challenges accessing password protected servers
关于iphone - 如何连接 nsstring url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5741095/