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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:13:39+00:00 2026-05-27T11:13:39+00:00

I make a UITableView filled cell data with sqlite db table records. Each UITableViewCell

  • 0

I make a UITableView filled cell data with sqlite db table records. Each UITableViewCell is a record related to a table record.

Now I want to use – (void) tableView : (UITableView *) tv didSelectRowAtIndexPath:(NSIndexPath *)indexPath method to goto the record detail view, I want to select from table with the record id. But this didSelectRow method has indexPath argument, I am able to write

- (id) initWithIndexPath:(NSIndexPath *)indexPath {
    if (self = [super init ]) {
        index = indexPath;
    }
    return self;
}

but now I want to right a method initWithCityId method

- (id) initWithCityId: (NSString * )_cityId {

}

How to assign this extra paramter( record id property) to detail view controller when did selected a UITableViewCell?

  • 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-27T11:13:39+00:00Added an answer on May 27, 2026 at 11:13 am

    Assuming the city ID is part of your table view data source, get it in the didSelectRow… method the same way as you do in cellForRowAtIndexPath… you can then pass it to (presumably) your detail view controller.

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

Sidebar

Related Questions

I want to make a UITableView, which has many columns, so the whole cell
How do you make each cell in a UITableView open a new view or
Can I make each cell a different height in a UITableView? How so?
I want to make the grouped UITableView transparent. I partially succeded with the following
I have a UITableView in iPhone with enough cell to make it scrollable. I
I'm managed to make my UITableView rows / cells black when data is loaded,
I have a UITableView filled with rows of data. There are only 3 or
I'm trying to make a UITableView that when a user selects a cell it
I want make an iphone app that has a UITableView that displays different texts
When using UITableView:dequeueReusableCellWithIdentifier, can I make any assumptions about the state of the cell

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.