Hey all,
I am trying to write the contents of a .json file from the interent to a string. The contents all text. I am using
Code:
json = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:NULL];
But if the .json file currently isn't available then the app crashes with writing nothing in the console. Does anyone know how to determine before hand if the file is available or how to make it not crash.
Thanks