Skip to content

Loading…

Make TTRequestLoader able to process requests in the background while scrolling #801

Closed
wants to merge 6 commits into from

5 participants

@jamesgpearce

Facebook has not maintained or supported Three20 for some time, and we are closing its old and outstanding pull requests.

Many, many thanks for your support of the project. If you have any further questions, please don't hesitate to let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 21, 2011
  1. @jwang

    Merge pull request #616 from facebook/development

    jwang committed
    Release Three20 v1.0.7
Commits on Aug 2, 2011
  1. @jwang

    Merge pull request #635 from facebook/development

    jwang committed
    Release Three20 v1.0.8
Commits on Sep 13, 2011
  1. @jwang

    Merge pull request #684 from facebook/development

    jwang committed
    Three20 1.0.9
Commits on Jan 5, 2012
  1. @diederich

    Merge pull request #739 from facebook/development

    diederich committed
    [Release] Three20 1.0.10
Commits on Feb 7, 2012
  1. @tonklon

    Merge pull request #771 from facebook/development

    tonklon committed
    [Release] Three20 1.0.11
Commits on Jun 26, 2012
  1. @pereckerdal
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/Three20Network/Sources/TTRequestLoader.m
View
9 src/Three20Network/Sources/TTRequestLoader.m
@@ -135,8 +135,13 @@ - (void)connectToURL:(NSURL*)URL {
[self cancel:request];
NSURLRequest* URLRequest = [_queue createNSURLRequest:request URL:URL];
-
- _connection = [[NSURLConnection alloc] initWithRequest:URLRequest delegate:self];
+
+ // To allow requests while scrolling we must schedule the conenction in other run loop
+ //
+ // http://forums.three20.info/discussion/428/ttthumbsviewcontroller-display-images-while-scrolling/p1
+ _connection = [[NSURLConnection alloc] initWithRequest:URLRequest delegate:self startImmediately:NO];
+ [_connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
+ [_connection start];
}
Something went wrong with that request. Please try again.