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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:14:53+00:00 2026-06-01T15:14:53+00:00

Well, as I say in the subject, my problem is that I’m selecting programmatically

  • 0

Well, as I say in the subject, my problem is that I’m selecting programmatically a cell on a tableview with the intention of perform, automatically, the associated segue. I have the code to do this on the viewWillAppear of the associated tableviewcontroller.

The result is that the cell is selected, but the segue is not performed. Do you know why?

By the moment I’m performing the segue programmatically on the viewWillAppear to solve the problem, but I’m curious about why the segue is not automatically performed if the cell is selected…

By the way. The segue must be ok because when I select the cell tapping it works properly.

More info: i’m working on a splitviewcontroller. Left side has the tableviewcontroller and the segue presents a viewcontroller on the right side

Thanks a lot!

Carlos

Related code:

- (void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];

// Si no hay ninguna fila seleccionada, seleccionaremos la primera

// Obtenemos la fila seleccionada
NSIndexPath *filaSeleccionadaPath = [self.tableView indexPathForSelectedRow];

// Si no hay ninguna fila seleccionada
if (!filaSeleccionadaPath)
{
    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
    [self.tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];

}

}

  • 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-01T15:14:55+00:00Added an answer on June 1, 2026 at 3:14 pm

    The documentation on UITableView specifies:

    Calling this method does not cause the delegate to receive a tableView:willSelectRowAtIndexPath: or tableView:didSelectRowAtIndexPath: message, nor will it send UITableViewSelectionDidChangeNotification notifications to observers.

    thus it will not trigger any actions. If you are using segues, you might want to use performSegueWithIdentifier:sender: on the UIViewController class (most likely self). You can specify an identifier and the sending element (most likely the cell).

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

Sidebar

Related Questions

Well I want to render a self closing tag say <img> tag like this
Well, the title say it all. I have a ruby script I want running
Well, sad to say, but I have 2 questions, which I wish I could've
Well, I'll say it like this. I have a table with 2 columns. The
Say if I have a large dataset, the table has well over a million
I'm using the N2 CMS system for ASP.NET. Well I say 'using', I'm really
Well lets say i have this <table class=infoBox> <tr> <td> test </td> <td> <table>
Sorry, I couldnt word the subject particularly well. Quite simply I have an IF
Well, the subject suggests the question: Oracle has a good support, so has enterpriseDB
Say, i have an arbitrary .NET object (well, i can guarantee it has [DataContract]

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.