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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:36:41+00:00 2026-06-03T06:36:41+00:00

I have a grouped table view with 2 sections. Section number 1 is hidden,

  • 0

I have a grouped table view with 2 sections. Section number 1 is hidden, and the section open when you tap in the sections header. But when I want to open a view by tapping in the cells in section 1 I need to double tap for open it. But in section 0 I only need 1 tap.
I based my open/close section in the Apple tutorial.

The didSelectRowAtIndexPath method don’t register the first tap at the cell.

The method looks something like this:

-(void)tableview:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath{
     [tableView deselectRowAtIndexPath:indexPath animated:YES];
     if(indexPath.section == 0 && indexPath.row == 0)
        [self.navigationController pushViewController:trainingController animated:YES];
     else if(indexPath.section == 1 && indexPath.row ==0)
        [self.navigationController pushViewController:newsController animated:YES];
}

This is pseudocode, so might not be a working code.

  • 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-06-03T06:36:42+00:00Added an answer on June 3, 2026 at 6:36 am

    If I hide both section it works with only 1 tap in both section. So if you want to hide a part of a section in uitableview is better to hide all, or you will have different interactions with the sections.

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

Sidebar

Related Questions

I have Grouped Table View in which I want to display Contact details. But
I have a grouped table with 3 sections, each section with a title. The
I have a grouped table view that contains 3 sections and each row per
I have a grouped table view that utilizes two different custom table cells. When
I have created a TableView(Grouped Table View). And I can list the items in
I have this login form. This form is a grouped table view where the
I have a grouped UITableView which displays a number of cells, which includes both
I have a UITableView that is grouped into sections and has a number of
I have a table view which is grouped according to month and year. For
Do you know how to have some cells appear in a table view after

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.