このコードを使用して、自分の位置データを含む uilabel を作成しました。
longitudedata.text = [NSString stringWithFormat:@"longitude=%f", location.coordinate.longitude];
speeddata.text = [NSString stringWithFormat:@"speed=%f", [location speed] * 2.2369];
altitudedata.text = [NSString stringWithFormat:@"altitude=%f", [location altitude]];
しかし、これらをURLに追加して、そのデータをサーバーに送信する必要がありますが、試したすべてが機能しません:(
NSURL *myURL = [NSURL URLWithString:[@"http://servername/ldtracker.aspx?id=3&" stringByAppendingString:longitudedata.text]];
などがありますが、これは機能しません。iv はすべてを試したようです
xcodeの初心者です。助けてください:)