Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any timeout period for NSData datawithcontentsofurl?

Is there any timeout period for NSData datawithcontentsofurl?

like image 838
user448236 Avatar asked Apr 20 '11 03:04

user448236


1 Answers

dataWithContentsOfURL may have an internal timeout but you want to use NSURLConnection instead, which allows for asynchronous communication. It also lets you specify a timeout interval.

like image 184
Julio Gorgé Avatar answered Sep 30 '22 17:09

Julio Gorgé