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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:27:29+00:00 2026-05-24T01:27:29+00:00

hi friend i try to give weather application by fetch by xml parser and

  • 0

hi friend i try to give weather application by fetch by xml parser and all the value display in tableview cell but know i want to insert a data into sqlite database but the problem is that only first case is insert other case are not inserted but i pass 4insert query in my sqlite insert statement how to increment this switch case on by one for store value in database table i writen this code in tableview delegate method tableViewcellforRowAtIndexPath:

indexPath++;

switch (indexPath.row) {
        case 0:
            NSLog(@"%d",indexPath.row);
            NSData *imageData = [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:currentcond.Icon]];
            NSLog(@"this is image from server:%@",imageData);
            cell.weatherimage.image = [UIImage imageNamed:photo];
            [imageData release];
        file://localhost/Users/pradeepyadav/Desktop/JourneyMapper/Journey/Classes/TJourneyTabBar.hcell.weatherimage.image = [UIImage imageNamed:photo];     
            cell.reportdate.text = _forecastInfo.CurrentDateTime;
            //cell.conditionname.text = currentcond.Condition;
            [cell setConditionName:currentcond.Condition];      
            //[cell setConditionName:cond1.Condition];
            cell.twotemp.text = [NSString stringWithFormat:@"Temp:%@/%@",currentcond.Tempf,currentcond.Tempc];
            cell.twodirection.text = currentcond.WindCondition;
            cell.humidity.text = currentcond.Humidity;

            break;
        case 1:
            NSLog(@"%d",indexPath.row);
            cell.weatherimage.image = [UIImage imageNamed:photo]; 
            cell.reportdate.text =[NSString stringWithFormat:@"%@",thursday];
            //cell.conditionname.text = cond1.Condition;
            [cell setConditionName:cond1.Condition];
            cell.twotemp.text = [NSString stringWithFormat:@"Temp:%@/%@",cond1.Low,cond1.High];
            break;
        case 2:
            NSLog(@"%d",indexPath.row);
            cell.weatherimage.image = [UIImage imageNamed:photo];
            cell.reportdate.text = [NSString stringWithFormat:@"%@",friday];
            //cell.conditionname.text = cond2.Condition;
            [cell setConditionName:cond2.Condition];
            cell.twotemp.text = [NSString stringWithFormat:@"Temp:%@/%@",cond2.Low,cond2.High];
            break;
        case 3:
            NSLog(@"%d",indexPath.row);
            cell.weatherimage.image = [UIImage imageNamed:photo];
            cell.reportdate.text = [NSString stringWithFormat:@"%@",sunday];
            //cell.conditionname.text = cond3.Condition;
            [cell setConditionName:cond3.Condition];
            cell.twotemp.text = [NSString stringWithFormat:@"Temp:%@/%@",cond3.Low,cond3.High];
            break;
        default:
            NSLog(@"Out of Range ",indexPath.row);
            break;
    }
    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-24T01:27:30+00:00Added an answer on May 24, 2026 at 1:27 am

    Why its not satisfying the other case? you should always use the case with indexpath.row and the second thing is, it depends how you are calling this method ?

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

Sidebar

Related Questions

I got a .app folder from a developer friend. I would try his application
The error occurs when I try to do this friend std::ostream& operator<<(std::ostream& os, const
I just created an iPhone app and am having friends try it out, but
Friend of mine has a problem :). There is an application written in Visual
A friend of mine is now building a web application with J2EE and Struts,
I have been using openinviter for my website and when i try to fetch
I'm helping a friend try to set up jsTree. We are trying to make
I try to add Tile form ListBox Item of my app: Like Friend hub,
I have a Code Composer project I received from a friend. When I try
Friend's, I implemented tabhost in my application,i have three tabs defined in my activity

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.