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

  • SEARCH
  • Home
  • 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 7192337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:55:10+00:00 2026-05-28T19:55:10+00:00

I’m using the demo example in https://github.com/nicklockwood/AsyncImageView to load images asynchronously, however my app

  • 0

I’m using the demo example in https://github.com/nicklockwood/AsyncImageView to load images asynchronously, however my app crashes when I load the view that is supposed to load the images

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil)
    {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];

        //common settings
        cell.imageView.frame = CGRectMake(0.0f, 0.0f, 44.0f, 44.0f);
        cell.imageView.contentMode = UIViewContentModeScaleAspectFill;
        cell.imageView.clipsToBounds = YES;
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
    }

    //display image path
    cell.textLabel.text = [nnameArray objectAtIndex:indexPath.row];

    //cancel loading previous image for cell
    [[AsyncImageLoader sharedLoader] cancelLoadingURL:cell.imageView.imageURL];

    //set placeholder image or cell won't update when image is loaded
    //cell.imageView.image = [UIImage imageNamed:@"placeholder.png"];

    //load the image
    cell.imageView.imageURL = [pimgArray objectAtIndex:indexPath.row];

    return cell;

    [cell release];
}

pimgArray is an array of URLs from a XML file. Anyone have an idea why this one is not working?

cell.imageView.imageURL = [pimgArray objectAtIndex:indexPath.row];

Console message


[Session started at 2012-01-31 13:26:42 +0800.]
2012-01-31 13:26:48.665 EteractApp[6024:207] -[NSCFString isFileURL]: unrecognized selector sent to instance 0x4e103e0
2012-01-31 13:26:48.667 EteractApp[6024:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString isFileURL]: unrecognized selector sent to instance 0x4e103e0'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00e885a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x00fdc313 objc_exception_throw + 44
    2   CoreFoundation                      0x00e8a0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x00df9966 ___forwarding___ + 966
    4   CoreFoundation                      0x00df9522 _CF_forwarding_prep_0 + 50
    5   EteractApp                          0x00016f9d -[AsyncImageCache imageForURL:] + 63
    6   EteractApp                          0x000176f0 -[AsyncImageConnection isInCache] + 75
    7   EteractApp                          0x00018c4c -[AsyncImageLoader updateQueue] + 488
    8   EteractApp                          0x00019407 -[AsyncImageLoader loadImageWithURL:target:success:failure:] + 196
    9   EteractApp                          0x00019450 -[AsyncImageLoader loadImageWithURL:target:action:] + 65
    10  EteractApp                          0x00019be6 -[UIImageView(AsyncImageView) setImageURL:] + 93
    11  EteractApp                          0x0001a2ad -[MyMatches tableView:cellForRowAtIndexPath:] + 878
    12  UIKit                               0x00361b98 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
    13  UIKit                               0x003574cc -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
    14  UIKit                               0x0036c8cc -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
    15  UIKit                               0x0036490c -[UITableView layoutSubviews] + 242
    16  QuartzCore                          0x01d9ca5a -[CALayer layoutSublayers] + 181
    17  QuartzCore                          0x01d9eddc CALayerLayoutIfNeeded + 220
    18  QuartzCore                          0x01d440b4 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
    19  QuartzCore                          0x01d45294 _ZN2CA11Transaction6commitEv + 292
    20  QuartzCore                          0x01d4546d _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
    21  CoreFoundation                      0x00e6989b __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
    22  CoreFoundation                      0x00dfe6e7 __CFRunLoopDoObservers + 295
    23  CoreFoundation                      0x00dc71d7 __CFRunLoopRun + 1575
    24  CoreFoundation                      0x00dc6840 CFRunLoopRunSpecific + 208
    25  CoreFoundation                      0x00dc6761 CFRunLoopRunInMode + 97
    26  GraphicsServices                    0x017531c4 GSEventRunModal + 217
    27  GraphicsServices                    0x01753289 GSEventRun + 115
    28  UIKit                               0x002fac93 UIApplicationMain + 1160
    29  EteractApp                          0x00001c58 main + 102
    30  EteractApp                          0x00001be9 start + 53
    31  ???                                 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
  • 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-28T19:55:11+00:00Added an answer on May 28, 2026 at 7:55 pm
    cell.imageView.imageURL = [NSURL URLWithString:[pimgArray objectAtIndex:indexPath.row]];
    

    I was passing a NSString to the NSURL object without initializing it..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i got an object with contents of html markup in it, for example: string

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.