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 6007599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:42:14+00:00 2026-05-23T01:42:14+00:00

I have a UItableView controller containing images. I also have a refresh button to

  • 0

I have a UItableView controller containing images. I also have a refresh button to re-retrieve the data from server in JSON format and populating the UITableView again.

However I am facing an issue whereby the app will crash sometimes when I click on the refresh button (erratic behaviour).

The screenshot of my crash is as follows

From here is seems like the error comes from synthesizing a property, and my assumption is that the error comes from trying to access the property aConnection
enter image description here

I checked the thread on the left hand panel and the following screenshot seems to indicate that the crash happened somewhere when I tried to set the aConnection again.
enter image description here

I am not sure if I posted enough information here, but any advise on how I can proceed will be greatly appreciated

  • 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-23T01:42:14+00:00Added an answer on May 23, 2026 at 1:42 am

    Try using this method.

    - (void)getData
    {
        NSAutoreleasePool *pool = [ [ NSAutoreleasePool alloc ] init ];             
        NSString *urlGen = [[NSString alloc] initWithFormat:@"http://myurlforjson"];
        NSLog(@"%@",urlGen);
        NSURL *url = [NSURL URLWithString:urlGen]; // Modify this to match your url.    
        NSString *jsonreturn = [[NSString alloc] initWithContentsOfURL:url]; // Pulls the URL   
        NSData *jsonData = [jsonreturn dataUsingEncoding:NSUTF32BigEndianStringEncoding];   NSError *error = nil;
        // I am using specific JSON Libraries to parse json data
        NSDictionary * dict = [[CJSONDeserializer deserializer] deserializeAsDictionary:jsonData error:&error];
        if (dict)
        {
            self.storageDictionary = [dict objectForKey:@"JSONItemNAME"];
            [self parseNumberofStores:self.listData];                        
            [self.listData retain];     
        }
        [urlGen release];
        [jsonreturn release];
        [self.table reloadData];
        if ([self.listData count] <= 0 )
        {
            UIAlertView *al = [[UIAlertView alloc] initWithTitle:@"Oops !" message:@"Sorry ! No Items Found" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
            [al show];
            [al release];
            //[[self navigationController] popViewControllerAnimated:YES];
        }
        if ([activity isAnimating]) {
            [activity stopAnimating];
        }
        [tableview reloadData];
        [pool release]; 
    }
    

    Hopefully this solves your problem.

    You might need to call this method from some click or load event try using this

    [NSThread detachNewThreadSelector: @selector(getData) toTarget:self withObject:nil];    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITableView I'm populating with data from CoreData. I have a data
I have a view controller that is used to populate data from the core
In my app I have UITableView & table data can be updated from remote
I have a need to display a UITableView containing a user's account credentials. For
I have a very strange problem with a UITableview within a navigation controller on
I have a working UITableView in my view controller. It is being successfully populated
UItableView style not changing. I have a tableView controller as one of the tabs
I have problems updating my UITableView from an AsyncCallback but updating a label works
Basically I want to re-style UITableView(Controller). Each cell will have a picture as a
I have a UITableView within a navigation controller shown within a popover. When you

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.