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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:04:15+00:00 2026-05-21T12:04:15+00:00

i am developing a simple view based application which contains two buttons and a

  • 0

i am developing a simple view based application which contains two buttons and a table view which parses the rss feed.my view has got two buttons at the top and i am adding uitableview from interface builder…ive added delegate and data source of the table view as file s owner….the parsing process is done in a seperate file and i am using delgation to receive the parsed data….every thing works fine except for
[self.tableView reloadData]
which gives an error and if i am to comment this i m not getting the data to be loaded in the table view…….this loading of parsed data works fine if im to create a navigation based application.but if i am to create a view based application and add table view progrmatically from interface builder creates problem ,cud u guys help me out….below is the code..

@implementation FirstViewController

@synthesize items;

@synthesize items2;

- (void)viewDidLoad
 {
    [super viewDidLoad];


    [self loadData];


}

-(void)loadData

{

if (items==nil) 
    {

Parser1 *rssparser=[[Parser1 alloc]init];   

rssparser.delegate=self;

[UIApplication sharedApplication].networkActivityIndicatorVisible=YES;

[activityIndicator startAnimating];

[rssparser startRssFeed:@"http://api.flickr.com/services/feeds/photos_public.gne"];


        [rssparser release];
    }else
    {
        //[self.tableView reloadData];
    }
}
-(void)receiveFeeds:(NSArray *)theItems
{   
[UIApplication sharedApplication].networkActivityIndicatorVisible=NO;

[activityIndicator stopAnimating];

items=theItems;

NSLog(@"ha ha ha items:%@",items);
    //[self.tableView reloadData];
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {


    return [items count];

}
- (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] autorelease];

 }

    cell.textLabel.text=[[items objectAtIndex:indexPath.row]objectForKey:@"title"];
    cell.textLabel.text=@"hello";

cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;

   return cell;
}
  • 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-21T12:04:16+00:00Added an answer on May 21, 2026 at 12:04 pm

    Try running your app with NSZombieEnabled = YES in the environment settings. Maybe you have a memory allocation issue somewhere.

    My educated guess is that:
    items=theItems;

    you do not retain the items array and it gets autoreleased before you use it

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

Sidebar

Related Questions

I'm developing an application to allow engineers to conduct simple single table/view queries against
Hi I am developing a simple application based upon ASP.NET MVC. I have altered
I'm developing a simple iOS app where there is a table view with some
i am developing one simple application for android mobile here i am using two
Here's the situation: I'm developing a simple application with the following structure: FormMain (startup
I am developing, a simple SharePoint Sequential Workflow which should be bound to a
I have a simple application using netbeans for developing and maven for building et
I am developing a simple game on iPhone and I started with a View
I am sort of new to developing view-based iPhone applications, and I need to
I've been developing a simple website using asp.net MVC and I'm starting to add

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.