Showing posts with label nsurlconnection. Show all posts
Showing posts with label nsurlconnection. Show all posts

Sunday, April 22, 2012

NSURLConnection timeout?


I'm using this NSURLConnection with delegates.




nsconnection = [[NSURLConnection alloc] initWithRequest:request
delegate:self startImmediately:YES];

Sunday, April 8, 2012

How to download a large file with the iPhone SDK and avoid memory usage issues?


I'm using the NSURLConnection class to download a large file in my iPhone application, but it crashes every so often because it's using too much memory. I'm doing the usual NSURLConnection usage, to append the received data to a NSMutableData object.

Thursday, March 1, 2012

connectionDidFinishLoading called before didReceiveData with rails production sending photos


I have a rails 3.0.3 website that, in development mode, responds to a HTTP GET by calling didReceiveData and then connectionDidFinishLoading, and photo data is sent from the website to the iPhone and displayed correctly. But when I run the rails 3.0.3 website in production mode, connectionDidFinishLoading is called before didReceiveData. I'm using carrierwave to handle the photos for both the development and production rails sites.

Loading NSData into a UIWebView


In my web browser, I am trying to load a UIWebView with NSData obtained from an NSURLConnection. When I try to load it into the UIWebView, instead of the site, it comes up with the HTML plain text.