Frage

Die URL ist ordnungsgemäß geschrieben, ich habe es im Browser mit Daten getestet, und es sendet ordnungsgemäß, aber wenn ich die Anforderung anfordere, gibt es zurück, dass es erfolgreich ist, aber es schreibt nicht tatsächlich die Daten.Jede Idee? generasacodicetagpre.

War es hilfreich?

Lösung

It could be an encoding issue. What kinds of characters are in getUsernameString, about, and icebreaker? As Maudicus mentioned, you need to handle special characters in the URL yourself.

Try:

urlString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]

Andere Tipps

You have set up an asynchronous connection. Do you implement the NSURLConnection delegate protocol methods? Are any of them being called?

The creation of the connection instance doesn't say anything about it's success.

Check out some tutorials, like this one.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top