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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:17:15+00:00 2026-05-19T02:17:15+00:00

I display List of date’s on my table view…. based on the date’s.. i

  • 0

I display List of date’s on my table view….

based on the date’s.. i need to search location. and title

“with the help of url“.

example
String *url=@”http://compliantbox.com/party_temperature/djsearch.php?date=?”

for the selected date.

i appended the date value to the string url.

So i need to parse again same xml parser. with date search.

<root>
<event title="event_title"location="new york"date="12/01/2011"/>
<event title="event_title2"location="california"date="13/01/2011"/>
<event title="event_title3"location="new york"date="14/01/2011"/>
</root>

here my array get’s Re-Initialization.

so i get conflict. when displaying data….

I need to not re-Initialization my array again. and again…
I need to initialize my array only once in entire application.

    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName 
      namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName 
        attributes:(NSDictionary *)attributeDict{
    if ([elementName isEqualToString:@"root"]){
        dateListArray=[[NSMutableArray alloc] init];
}
}

I Hope you people understand my problem.
Please help me out .

@Thanks to All.

  • 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-19T02:17:15+00:00Added an answer on May 19, 2026 at 2:17 am

    One way that you should trying here,

    if([dateListArray count] > 0)
    {
        [dateListArray removeAllObjects];
        [dateListArray release];
    }
      dateListArray=[[NSMutableArray alloc] init];
    

    And other way you should also be trying,

     dateListArray=[[NSMutableArray alloc] init];
    

    above statement write down in -(void)viewDidLoad event and

    if([dateListArray count] > 0)
    {
        [dateListArray removeAllObjects];
    }
    

    above write down in your required function.

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

Sidebar

Related Questions

I need to display a single list, ordered by date which contains different types
I need to display a list of dates, which I have in a table
I am trying to display the text from json in a list view. I
All I want is to display a list of records from a database table
I need to display a list of dates from a database. There can be
On web page I display list of comments, I want to add an option
With the display list in Actionscript 3.0, I'm often inclined to have children add
I want to display list of people in the iPhone's address book with atleast
i've drawn an ellipse sprite and added it to the display list of a
i'm branding an iphone app and the designer wants to display list items using

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.