I’m pretty new to iPhone. I want to send a request to a server with a float value for a specific key. Can anyone help me out here how to send a float value using ASIHTTPRequest in the request body. I tried changing the value to NSNumber and send it in body but the server response was an error invalid value type.
[_request setPostValue:[NSNumber numberWithFloat:y] forKey:@"Y"];
Also, I can’t send float directly as an NSObject.
you can convert your float value to nsstring and then send that value.