What is NSURLConnection class in iOS?

Last updated:9/22/2020 3:06:56 AM

1 Answers

Sunil Singh
Sunil Singh

NSURLConnection objects allow you to load the contents of a url by providing a URL request object.There are two ways of use of NSURLConnection class one is asynchronous and second is synchronous . In asynchronous connection request create a new thread and performs it download process on new thread so that it not block the main thread .In synchronous connection run on main thread while downloading content and doing its communication .

Answer