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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:22:21+00:00 2026-05-24T10:22:21+00:00

i tryed to learn how working with a sql data source, i’ve find a

  • 0

i tryed to learn how working with a sql data source, i’ve find a sample name SQLiteTutorial in apple’s sample
What bad, apple did not update their samples, so when i open apple sample file i’ve got many deprecated warning ….

in that case the code is

// Set up the cell
    SQLiteTutorialAppDelegate *appDelegate = (SQLiteTutorialAppDelegate *)[[UIApplication sharedApplication] delegate];
    Animal *animal = (Animal *)[appDelegate.animals objectAtIndex:indexPath.row];

    [cell setText:animal.name];
    return cell;  

and Xcode said me setText is deprecated, but i did not find how to correct this.

The tutorial i’m working on is here : http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/

I’ve got other warning in the app delegate

// Execute the "checkAndCreateDatabase" function
    [self checkAndCreateDatabase];

    // Query the database for all animal records and construct the "animals" array
    [self readAnimalsFromDatabase];

    // Configure and show the window
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
}

Xcode tell me that SQLiteTutorialAppDelegate may not respond to checkAndCreateDatabase and to readAnimalsFromDatabase

and the last thing in the RootViewController , instance method initWithData:cache not found

enter image description here

/ Load the animals image into a NSData boject and then assign it to the UIImageView
    NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:[animal imageURL]]];




    UIImage *animalImage = [[UIImage alloc] initWithData:imageData cache:YES];
    self.animalView.animalImage.image = animalImage;

}

thanks if you have an answer.

  • 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-24T10:22:22+00:00Added an answer on May 24, 2026 at 10:22 am
    cell.textLabel.text = animal.name;
    

    Is how you set text in the cell since iOS 3.0.

    Don’t know about other warning because they are related to the code You didn’t post. Learning from such old code is not a good idea, you should probably find something slightly newer 🙂

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

Sidebar

Related Questions

I've tryed mylyn but i cant find that feature, if anyone have test mantis
So i've been working on a MVC2 application just to learn the ropes really.
I was trying to download some ASP.NET MVC Sample application to learn MVC. I
I've been trying to learn ANTLR and get it working with C output code
I was writing some code today and something was not working as I expected.
I'm currently working on a website that you'll find here: http://steadfastdesignfirm.com/rgw/ . I used
I'm working through the Ruby on Rails 3 Tutorial: Learn Rails by Example by
I've made my own captcha class in PHP, just to learn. It's ok, working
I am trying to learn django framework with few sample applications. Currently, I am
I'm working to learn how to user delayed_job on my rails 3 + heroku

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.