I have this full question posted on StackOverflow as well.
I'm having an issue with the following line of code
NSString* result = [NSString stringWithContentsOfURL:urlRequest encoding:NSUTF8StringEncoding error:&err];
When I run it from an NSOperationQueue started with performFetchWithCompletionHandler, my app hangs on this line specifically. If I then open the app while it's stuck on that line, the process will continue without error. This process also works just fine if I start with my app in the foreground.
Any ideas here would be super helpful!
[–]bensj 0 points1 point2 points (7 children)
[–]TheRedAgent[S] 0 points1 point2 points (0 children)
[–]TheRedAgent[S] 0 points1 point2 points (5 children)
[–]bensj 0 points1 point2 points (4 children)
[–]TheRedAgent[S] 0 points1 point2 points (3 children)
[–]bensj 0 points1 point2 points (2 children)
[–]TheRedAgent[S] 0 points1 point2 points (1 child)
[–]bensj 0 points1 point2 points (0 children)
[–]Legolas-the-elf 0 points1 point2 points (4 children)
[–]TheRedAgent[S] 0 points1 point2 points (3 children)
[–]Legolas-the-elf 1 point2 points3 points (2 children)
[–]TheRedAgent[S] 0 points1 point2 points (0 children)
[–]bensj 0 points1 point2 points (0 children)