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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:19:43+00:00 2026-05-27T23:19:43+00:00

Which number is the first object in a NSArray? I originally thought it was

  • 0

Which number is the first object in a NSArray? I originally thought it was 0 but I may be wrong.

Also which number is the first cell in a UITableView? I thought the first indexpath.row was 1 but I also may be wrong?

Are there any links anyone can point me to, where Apple explains this?

Thanks!

-(BOOL) textFieldShouldReturn:(UITextField *)thetextField {

    CustomCell *cell = (CustomCell*)[thetextField superview];
    NSIndexPath *indexPath = [thetableView indexPathForCell:cell];
    NSLog(@"%i", indexPath.row);
  • 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-27T23:19:44+00:00Added an answer on May 27, 2026 at 11:19 pm

    Index 0 represents the first element in NSArray.

    As for UITableView, you have both a row and section number in an index path. So the first element of the first section is when indexPath.row = 0 and indexPath.section = 0.

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

Sidebar

Related Questions

i want to find factorial a number which i take memory first.(intel 8085) edit:
In C++, I have an Object class, from which a number of other classes
I have a UITableView which uses a singleton object as a datasource. I have
I get Document object from JTextPane , which contains method remove , but specific
How and when is released IndexPath object which is returned in UITableViewDelegate? let's imagine
I need help on which random number generator to use simultaneously from multiple threads
I am creating a class that determines which of number of registered WCF client
Setting the scene: My asp.net web application carries a version number which is incremented
I always had this question: When i dont mind the exact floating number Which
I have a service which creates a number of child processes. Using c# I

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.