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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:02:22+00:00 2026-05-23T05:02:22+00:00

I am trying to fetch data from core data, it works fine. But when

  • 0

I am trying to fetch data from core data, it works fine. But when I try to fill a Table Cell then it gives me warning at the following line

    cell.textLabel.text = [fetchedObjects  objectAtIndex:indexPath.row];

Warning : passing argument 1 of ‘objectsAtIndexes:’ makes pointer from integer without a cast.

fetchedObjects is an NSArray object declared in header file. Kindly guide me where I am doing wrong. I can provide whole method for more understanding.

Regards.

EDIT

Here is my complete method code:

- (UITableViewCell *)tableView:(UITableView *)tableView 
     cellForRowAtIndexPath:(NSIndexPath *)indexPath {    


UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease];

cell.textLabel.text = [fetchedObjects  objectAtIndex:indexPath.row];    

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-23T05:02:23+00:00Added an answer on May 23, 2026 at 5:02 am

    Your posted code says you’re calling objectAtIndex, which does indeed take an integer parameter. However, your error says you’re using objectAtIndexes, which takes a pointer to an NSIndexSet. As indexPath.row is not an NSIndexSet pointer, you’re getting that warning (saying that you’re trying to use a raw integer as a pointer).

    Check your actual code. Almost certainly, you’re using objectAtIndexes by mistake.

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

Sidebar

Related Questions

So I'm trying to fetch objects from core data. I have list of say
I'm trying to fetch objects from core data that are not in a given
I'm trying to fetch from Core Data records that have a startTime between two
I am trying to fetch an entity from the core data depending on the
When I'm trying to fetch data from the sqlite database table the NSArray has
So, I am trying to fetch around 2000 objects from core-data and trying to
I am retrieving a fetch from my core data database and trying to iterate
am trying to fetch some data from a form, but i cant for some
I'm trying to fetch data from a div (based on his id), using PHP's
I am trying to fetch data from DB and loading the DB with the

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.