Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I make a master detail template into a catalog?

Posted on 2012-03-11
3
Medium Priority
?
65 Views
Last Modified: 2016-05-25
The app: I need to make an iPad app for cashiers at a small school uniform business to ring up customers.  Using the master detail view template, The schools are listed in the master view.  Depending on which school is selected, the available uniforms in detail view should change to the one's for that specific school.  Also, these uniforms should have a cost associated with them and a way to select quantity so they can be totaled up after being added to the cart.

Quick description of what I have so far:  So far, I have it so the app has different school in the master view.  I am having a hard time making it populate with different uniforms when one of the schools is selected.
0
Comment
Question by:nickd91
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Accepted Solution

by:
darbid73 earned 2000 total points
ID: 37708415
Hi nickd91,

I assume you have a master view  that contains a UITableView.  One of your delegate methods referenced in the Apple documents is "tableView:didSelectRowAtIndexPath:".  This you will need to implement this method.

Now if you only have a list of schools and each school only has one uniform then each time the person selects a school then the above method will run.  

Then what you need to do is create a way of passing the choice to the class of your detail view.  This means that you need your master view to have access to the instance of your detail view controller and then to have a custom method in your detail view controller that accepts your school choice.

There are a number of ways of passing this information between your master view and detail view.  Here is one example using a protocol & delegate.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Basics of Storyboard Storyboards were first introduced to developers in the release of iOS 5. They save the developer the trouble of designing each screen’s interface in a different file. The storyboard allows you to see the conceptual mockup o…
A professional opinion on which Apple product to buy, and a tidbit about the WWDC.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question