tags:

views:

54

answers:

1
+1  Q: 

Check URL validity

Can someone confirm that checkResourceIsReachableAndReturnError method of NSUrl is working as expected. I have tried using it for known URLs and it is always returning FALSE. I am using XCode's iPhone Simulator 4.1. Thank you.

+3  A: 

According to NSURL Class Reference

Returns whether the resource pointed to by a file URL can be reached.
...
Discussion
This method is unimplemented in iOS, so it performs no operation

So it only works for file URLs (which your URL probably isn't) and it only works on Mac OS X anyway.

tc.
In conclusion, for iOS, the answer is NO, right? Any workaround?
Interfector
What, exactly, are you trying to achieve?
tc.
I want to see if I have an XML at a specific remote location
Interfector