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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:27:41+00:00 2026-06-10T13:27:41+00:00

I have a Master-Detail application for iPad. I am using storyboard. When the user

  • 0

I have a Master-Detail application for iPad. I am using storyboard. When the user selects a cell in MasterViewcontroller, data is displayed in another table (UITableViewController). When the user selects a cell in the second table, I want to display the related information in the DetailViewController. The second table displays a list of documents (PDF, XLS, etc). So, when the user selects abc.pdf, I want the PDF document to be displayed (in read-only mode) in the Detailviewcontroller.

I have found several samples which do this directly from the MasterViewcontroller to the detailviewcontroller. But I am not able to achieve this from the second table. The navigation looks like this:

Table1 (parent data)
    |
    V
Table2 (child data, which as I said is a list of documents)
    |
    V
Detailview (display the selected document in read-only mode)
  • 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-10T13:27:43+00:00Added an answer on June 10, 2026 at 1:27 pm

    Storyboard or NIBs?

    Assuming storyboard,

    • define a segue from your second master tableview to the new details screen that will show the PDF; the segue should probably be a “replace” segue that replaces the detail screen;
    • give that segue a unique identifier;
    • in the tableView:didSelectRowAtIndexPath method, perform the segue using that identifier;
    • in your new details view controller that shows the PDF, define a property with the name of the PDF to be opened; in viewDidLoad of that controller, have it open up the PDF for viewing; and
    • in your prepareForSegue of the master view controller, set the property of the new view controller based upon what row of your table was selected.

    If not storyboard, the process is similar, but rather than a segue and a prepareForSegue, you’d manually alloc/initWithNibName in didSelectRowAtIndexPath, you’d set the value of the pdf name property in your new controller, and then you’d transition the details screen to it via pushViewController or presentViewController, as you see fit.

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

Sidebar

Related Questions

I have a Master-Detail application.When the user selects a row in the MasterTable, I
I have a simple iOS Master-Detail Application -> On the iPad it's a splitview,
I have storyboard and implement master detail application app ,when i assign manuel class
I'm using the template master detail application. I have added a modal segue from
I have a MasterViewController in a MAster Detail aplication showind data in a UITableView.
In my iPad application, i have used UISplitViewController where master view contains table view
I have a simple Master-Detail application with a MasterViewController and a DetailViewController. Inside of
I am creating a master detail application using monotouch for iPad. In the master
I have a master-detail application that has a tableview in the masterViewController and in
I have a simple master-detail application and I'm using the detail view to configure

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.