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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:58:49+00:00 2026-06-16T00:58:49+00:00

After preforming a search on my tableview and selecting a row, The detailed view

  • 0

After preforming a search on my tableview and selecting a row, The detailed view controller (MOVdetailViewController) only updates the name and not the information (address, website and other things). Which is located in the MDVC.lodgeNumber that I have setup as a switch. Im now thinking this is not possible due to the detailed information being stored in a switch. All feed back is greatly appreciated

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender

{
  if ([segue.identifier isEqualToString:@"lodgedetail"]) {
      MOVDetailViewController *destViewController = segue.destinationViewController;
      MOVDetailViewController * MDVC = [[MOVDetailViewController alloc] init];


      NSIndexPath * path = [self.tableView indexPathForSelectedRow];
      NSString * thelodge = [filteredList objectAtIndex:path.row];

      MDVC = [segue destinationViewController];
      MDVC.lodgeNumber = path.row;
      MDVC.lodgeName = thelodge;



      NSIndexPath *indexPath = nil;

      if ([self.searchDisplayController isActive]) {
          indexPath = [self.searchDisplayController.searchResultsTableView
                          indexPathForSelectedRow];
          destViewController.lodgeName = [filteredList objectAtIndex:indexPath.row];



      } else {
          indexPath = [self.tableView indexPathForSelectedRow];
          destViewController.lodgeName = [lodgeList objectAtIndex:indexPath.row]; 
        }
      }
   }

Example of the switch:

  self.title = lodgeName;     
  switch (lodgeNumber) {
      case 0:
          //Abingdon Lodge No. 48
          address.text = @"325 W Main Street Abingdon, Virginia 24210";
          website.text = @"http://www.grandlodgeofvirginia.org/lodges/48/";
          statedc.text = @"Abingdon Lodge No. 48 holds it's stated communication on the              
                           2nd Monday of the month at 7:30 PM. If there are
                            any exceptions to the regular meeting day or time, 
                            they are posted on the Lodge website.";

         lodgehistory.text = @"According to the earliest records the Abingdon Lodge had 
              its origin “At a meeting held at the house of
              James White in the town of Abingdon, on October 3, 1796.” The record
              states that a dispensation had been given by the Grand Master of
              Masons in Virginia and the following were present: William King,
              Master; Daniel Murphy, Past Master; Robert Johnson, Past Master;
              Charles Carson, Past Master, and William Preston Skillern. For more
              information on the Lodge History please see the Lodge website.";

         break;
  • 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-16T00:58:50+00:00Added an answer on June 16, 2026 at 12:58 am
        MOVDetailViewController *MDVC = segue.destinationViewController;
    NSIndexPath * path = [self.tableView indexPathForSelectedRow];
    NSString * thelodge = [filteredList objectAtIndex:path.row];
    
    MDVC.lodgeName = thelodge;
    MDVC = [segue destinationViewController];  // REMOVE THIS LINE
    MDVC.lodgeNumber = path.row;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show a specific ViewController (or dismiss) a View after performing an
I have a problem with Selenium WebDriver exiting the for loop after performing only
in my plug in after performing search, each matches are sent to acceptsearchmatch(searchmatch) function
After performing EXPLAIN on a query: explain select name from t1 where name like
I am having a problem where, after performing a simple mathematical operation on the
I am running a timer and performing a redirect after a user changes his
I'm using MPI for performing parallel processing, after i compile the application using mpicc,
After deploying WCF server (svc) on my Server, I have got this message when
After discovering about Javascript namespaces, I tried to implement them but I run into
After a system upgrade i am no longer able to start my tomcat5 server.

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.