我正在考虑做这样的事情:
NSString *path = [NSString stringWithFormat:@"http://www.somedomain.com?id=%@&email=%@",
[id.text stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]],
[emailField.text stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]];
那行得通吗?或者如果这些字段是空白的,那会导致某种错误吗?
谢谢!