Image URL UITableView lag

Discussion in 'iOS Development' started by Rockstarou812, Jun 9, 2009.

  1. Rockstarou812

    Rockstarou812 New Member

    Joined:
    Jan 17, 2009
    Messages:
    43
    Likes Received:
    0
    Ok, my new app uses images from my website, and places them in a UITable that you can scroll through. But the scrolling is extremely laggy, I have reduced the size and quality of the photos, but it made no difference.

    If anyone could please help me, that would be great! The more specific with detail you are the better!

    Please Register or Log in to view images

  2. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Download the image on a separate thread, and then reload the data of the table when it's done, so that the scrolling has nothing to do with the amount of time it takes to download.

    I posted an example of this with an NSOperation subclass on another thread.


    http://www.ifans.com/forums/showpost.php?p=1579629&postcount=10
  3. Rockstarou812

    Rockstarou812 New Member

    Joined:
    Jan 17, 2009
    Messages:
    43
    Likes Received:
    0
    Hey I used an NSURLConnection to get the data, it's a lot neater than having to make threads, thanks though!

    Please Register or Log in to view images

Share This Page