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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:20:48+00:00 2026-05-25T03:20:48+00:00

I am new to making iOS apps. I have currently built a Split View

  • 0

I am new to making iOS apps. I have currently built a Split View based app. There is an array in the left had table and what ever is touched it loads the relating xib file in the detail view.

Now I want a home button to work. I want this to basically reload the DetailViewController to scratch. I have got it working like this so far:

- (IBAction)homeButtonPressed:(id)sender;
{


    [[NSBundle mainBundle] loadNibNamed:@"DetailView" owner:self options:nil];//load xib
    self.navigationItem.rightBarButtonItem = nil;//hide the home button
    [self setTitle:@"Driveway Code"];//display the title
}

But the problem with this is that it still has the row selected in the left hand side. And I cannot seem to un select it.

If you could provide me with help either to reload the split view again or to just unselect the row. I would be happy. Thanks 🙂

UPDATE:

I have now go this:

- (IBAction)homeButtonPressed:(id)sender;
{



    [[NSBundle mainBundle] loadNibNamed:@"DetailView" owner:self options:nil];
    self.navigationItem.rightBarButtonItem = nil;

    [self setTitle:@"Driveway Code"];
    DetailViewController *dvc = [[DetailViewController alloc] init]; [dvc setTableView:tableView];

    [tableView deselectRowAtIndexPath:detailItem animated: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-25T03:20:50+00:00Added an answer on May 25, 2026 at 3:20 am

    Use this method to select row programmatically:

    - (void)selectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UITableViewScrollPosition)scrollPosition
    

    and this one for deselect

    - (void)deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to developing iOS apps. I am currently making an app which
I am new to making iOS apps. I want to make a Split View
I'm making a new Mac OS X application. (not an iPhone app) This is
I am currently building an making my new website. It uses one page and
I am currently in the process of making a new ASP.net MVC website, and
So, I've been making iOS apps since the first iPod touch came out, but
I am new to smartphone-apps. I have a site where users can get messages
I'm making a new website to replace a current one, using Flask micro-framework (based
I'm making a new Android app that essentially mirrors data available on our website.
I am tasked with making an app that works in iOS 4.0 work in

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.