Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6711267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:07:10+00:00 2026-05-26T08:07:10+00:00

Here I am creating an iPhone app using facebook api. I have loaded the

  • 0

Here I am creating an iPhone app using facebook api. I have loaded the friends list and their profile pictures into a table view. But now its running slowly. I want to speed up the loading of the pictures, how can I do that?

Here is my sample code:

- (void)request:(FBRequest*)request didLoad:(id)result { 
    NSArray* users = result; 
    for (int ndx = 0; ndx < [users count] ; ndx++)
    {
        NSDictionary* user = [users objectAtIndex:ndx]; 
        NSString* name = [user objectForKey:@"name"];
        NSString *imageName = [user objectForKey:@"pic_big"];
        [imageArray addObject:imageName];
        [friendsList addObject:name];
    }
}

In tableview delegate method:

imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString: [imageArray objectAtIndex:indexPath.row]]];
        image = [[UIImage alloc] initWithData:imageData];

        cell.imageView.image =image;

And also the picture sizes are different.
Please help
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:07:11+00:00Added an answer on May 26, 2026 at 8:07 am

    By using the Lazyloading concept you can make it run fastly.
    Just download this class for lazyloading.

    It is very easy to impelement.

     #import "UIImageView+WebCache.h"  // Import this
    
        - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
         ------------------ 
         ------------------
    [cell.imageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]  placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
    
        cell.textLabel.text = @"My Text";
        return cell;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an iphone app using Facebook api. Here I'm using the following
I'm creating an iPhone app in Flash, and I've run into performance problems. I've
Hey everyone, I have a iPhone App I am creating. It uses a uitableview
I am creating an iphone app, and I am using a UITextField. In my
I am creating an iPhone app that I feel needs to have a receipt
I am creating a web application using zend, here I create an interface from
I have seen a couple of question regarding creating datasets in DbUnit here on
I am creating a simple FeedReader iPhone app where a RSS is feed is
I'm using Jqtouch to design a iphone app. As I'm using a standard header/toolbar
I am creating a webapp for iPhone using jQuery Mobile and PhoneGap. Everything works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.