I have a problem in that I am trying to background load a sound file while the user moves around a UIScrollView… The problem is that I am using NSURLRequest so I can load in the background, but even then it refuses to actually load until the UIScrollView has stopped scrolling. 🙁
Is there anything I can do about this?
Thanks!
The
NSURLRequestonly manages the request, not the actual connection.Touch events such as scrolling will place the run loop into
NSEventTrackingRunLoopMode. By default, anNSURLConnectionis scheduled to only execute inNSDefaultRunLoopMode. So while inNSEventTrackingRunLoopMode,NSDefaultRunLoopModeis blocked.Good news is that you can schedule additional modes for an
NSURLConnection, such asNSRunLoopCommonModes.