Here is the problem:
The app crashes at the 2nd line, and I got EXC_BAD_ACCESS exception.
NSURL *url = [NSURL URLWithString:@"..."];
NSError *error = nil;
NSData *data = [NSData dataWithContentsOfURL:url
options:NSDataReadingMapped
error:&error];
NSLog(@"Error: %@", error);
NSLog(@"%@", [data length]);
I got:
Error: (null)
Program received signal: “EXC_BAD_ACCESS”.
Any idea?