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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:08:56+00:00 2026-05-26T17:08:56+00:00

I HAVE READ apple documentation and it’s not understandable for such a beginner in

  • 0

I HAVE READ apple documentation and it’s not understandable for such a beginner in Objective-C as me. I’m trying to implement multicolumn UITableView following this link example and it just doesn’t work so i need to comprehend how cellForRowAtIndexPath work, cause for me personally this method seems pretty complicated.

1) What does it return? UITableViewCell? But why does it look so odd?

-(UITableViewCell *)tableView:(UITableView *)tableView 
  • What is that? Could you please explain?

2) How does it get called and what is more important how am i to connect it to a certain UITableView??? What if i have two UITableView‘s named firstTableView and secondTableView and i want them to be different (to perform cellForRowAtIndexPath differently)? How am i supposed to link my UITableViews to this

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

the method accepts NSIndexPath, not UITableView. What am i gonna do?

  • 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-26T17:08:57+00:00Added an answer on May 26, 2026 at 5:08 pm

    1) The function returns a cell for a table view yes? So, the returned object is of type UITableViewCell. These are the objects that you see in the table’s rows. This function basically returns a cell, for a table view.
    But you might ask, how the function would know what cell to return for what row, which is answered in the 2nd question

    2)NSIndexPath is essentially two things-

    • Your Section
    • Your row

    Because your table might be divided to many sections and each with its own rows, this NSIndexPath will help you identify precisely which section and which row. They are both integers. If you’re a beginner, I would say try with just one section.

    It is called if you implement the UITableViewDataSource protocol in your view controller. A simpler way would be to add a UITableViewController class. I strongly recommend this because it Apple has some code written for you to easily implement the functions that can describe a table. Anyway, if you choose to implement this protocol yourself, you need to create a UITableViewCell object and return it for whatever row. Have a look at its class reference to understand re-usablity because the cells that are displayed in the table view are reused again and again(this is a very efficient design btw).

    As for when you have two table views, look at the method. The table view is passed to it, so you should not have a problem with respect to that.

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

Sidebar

Related Questions

I have read in the Apple Documentation that StoreKit will not restore subscriptions on
I have read the Apple documentation regarding Mobile Device Management (MDM) but did not
I have read the Apple documentation. They list the apps registered, yet in their
I have read about NSPasteBoard in the Apple documentation, and how it allows for
I have read Apple's documentation and as many posts as I could here on
I have read http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Collections/Articles/Arrays.html%23//apple_ref/doc/uid/20000132-SW5 But I did not find a solution to my problem.
I have read from some article that say's Apple doesn't approve the application which
I have been reading all the Apple documentation on how to handle various events
I read somewhere in apple documentation that I need to edit the plist to
I've read around SO as well as looked at the Apple documentation for 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.