创建url的NSString时出错

时间:2011-08-30 09:17:51

标签: ios gps wcf-rest

我想使用restful服务从我的iphone / ipad发送我的gps数据,但我收到错误

  

'NSInvalidArgumentException原因:发送到无法识别的选择器   类

我在跟踪代码时遇到错误。

 [NSString stringwithFormat:@"http://192.168.0.105/TestServices/Service2.svc/gpsdata?latitude=%f&longitude=%f",location.coordinate.latitude,location.coordinate.longitude];

1 个答案:

答案 0 :(得分:0)

大写不正确,应该是stringWithFormat!