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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:31:20+00:00 2026-05-26T00:31:20+00:00

I have a UISplitViewController. When the app launches initially, the detail view is showing

  • 0

I have a UISplitViewController. When the app launches initially, the detail view is showing the detail data for the first row. However, the cell in the table is not highlighted, since it hasn’t been selected yet. How can I set it to selected by default when the app loads initially?

I added this to cellForRowAtIndexPath but its not highlighting. It highlights fine when I actually select a cell.

if (indexPath.row == 0)
{
    cell.selected = YES;
}
  • 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-26T00:31:20+00:00Added an answer on May 26, 2026 at 12:31 am
    -(void)selectFirstRow {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        // optional:
        // [self tableView:myTable willSelectRowAtIndexPath:indexPath];
        [myTable selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionTop];
        // optional:
        // [self tableView:myTable didSelectRowAtIndexPath:indexPath];
    }
    

    Then call [self selectFirstRow]; wherever you need to.

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

Sidebar

Related Questions

I have an UISplitViewController base project. I want to have a different detail View
So I have an instance of MyViewController in the detail view of a UISplitViewController.
I have a UISplitViewController with a Table View for navigation. It's similar to the
I'm using UISplitViewController for app on iPad. The first task was to show master
I am doing an iPad app based on a UISplitViewController. I have a little
I have an app for iPad with a UISplitViewController in it (UsersSplitViewController). On the
I have created a UISplitViewController based iOS app in XCode 3.2.5 Below is a
For the app that i am developing i have used a UISplitViewController as my
I have a universal app, and on the iPad version I'm using UISplitViewController to
Background & Objective: I have a UISplitViewController based iPad app - till now it

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.