02 Feb 2012, 15:55
Generic-user-small

Paul Brown (1 post)

I’ve tried a variety of things here with no success. I have an iPad app, and I am wanting to log the number of touches it gets for a given period of time. Then I want to send those statistics via this BasicHTTPPost method. I can submit strings all day long, but the number of touches is stored as an int. NSMutableDictionary apparently only holds objects. I’m fine with that. I tried converting my int to an NSNumber, but my app still crashed.

So, how can I use this method to submit numbers via an HTTP POST?

Thanks for any advice.

19 Feb 2012, 13:43
劉威96x127_pragsmall

Wei Liu (2 posts)

The sample code only deals with NSString dictionary. You need to convert your int to NSString using [NSString stringWithFormat:@”%d”, yourInt].

  You must be logged in to comment