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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:39:57+00:00 2026-05-27T19:39:57+00:00

I am using split view controller in my project, in the split view i

  • 0
  • I am using split view controller in my project,
  • in the split view i have RootViewCotroller (left),
    DetaolsViewConroller (right).
  • In the Root view controller, I have 3 rows.
  • Now I want different type of appearance in details view, when
    selecting different rows in rootview.
  • …
  • in Details view:
  • 1.Display a tableView when select the row1.
  • 2.Dispaly a text field when select the row2.
  • 3.Image view when select row3 from rootviewcontroller.
  • ..
  • I wrote the code like this in RootViecontroller, but no change in
    detailsView.
  • –

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

       {
           RightViewController *rightViewController = [[RightViewController alloc] initWithNibName:@"RightViewController"bundle:nil];
           //[self.navigationController pushViewController:rightViewController animated:YES];

           if(indexPath.row == 0)
           {
               UILabel *infoLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, 5, 450, 150)];
               infoLabel.text = @"Customer:Barrick \r\n Mine:gold \r\n Location:USA";
               [rightViewController.view addSubview:infoLabel];

               UITableView *mapTable = [[UITableView alloc]initWithFrame:CGRectMake(165, 5, 450,150)style:UITableViewStyleGrouped];
               [rightViewController.view addSubview:mapTable];
           }

           if(indexPath.row == 1)
           {
               UILabel *infoLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, 5, 450, 150)];
               infoLabel.text = @"Eqipement";
               [rightViewController.view addSubview:infoLabel];
           }


           if(indexPath.row == 2)
           {
             image view..   
           }

           [rightViewController release];
       }
  • what to do..? Thanks in advance.
  • 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-27T19:39:58+00:00Added an answer on May 27, 2026 at 7:39 pm

    You have to pass a value to the right view controller and you have to also set delegate for your right view controller.

    Define your right View Controller in your left view controller like:

    RightViewController *detail;
      /// in implementation of left view contrloller
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 
        NSUInteger item = [indexPath row] +1;
        NSNumber *detailItem = [NSNumber numberWithInteger:item];
        self.detailCar.detailItem = detailItem;
    }
    

    Define in your rightViewController.h file :

    @property (retain, nonatomic) NSNumber *detailItem;
    

    In Your RightViewController’s implementation file:

    - (void)setDetailItem:(NSNumber *)newDetailItem {
        NSLog(@"ConfigTItem");
        if (_detailItem != newDetailItem) {
            [_detailItem release]; 
            _detailItem = [newDetailItem retain]; 
            [self configureView];
        }
        else {
            [self configureView]; 
        }
    }
    
    - (void)configureView {        
        if (self.detailItem) {
            [self viewDidLoad];  // 
            //set your method's and variable whatever you want to do in your view did load or directly here
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to create a list of list using split view controller in IPad,
I have a split view app running fine on the iPad. It is using
I am using a split view controller in an iPad app I am trying
While using the Entity Framework I have split it out to it's own project:
Using Java (1.6) I want to split an input string that has components of
I am using the split view template to create a simple split view that
I'm new to using the split view for creating iPad applications. When I first
So I have a simple split view that functions great except when the view
Hi I started writing a split view app for iPad using the split-view template.
I am having a problem placing a tool bar in the root view controller

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.