I m using NSURLConnection with sendAsynchronousRequest method (and handing the data in block).
Using above method, I m downloading a video file from server and saving locally in cache folder.
This is working fine if the URL is valid. If the URL is invalid (that is the video is not available at given URL), it is still saving a file with the file name that I m giving. NSError is nil and NSData object is not nil. How can I check whether the URL is valid or catch the error if URL is not there?
For a basic app with nonconsumable in-app purchases, has anyone figured out best practices for using SKPaymentQueue s restoreCompletedTransactions? Observations I know it s recommended to always ...