Solved

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

Posted on 2012-03-11
3
39 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
3 Comments
 
LVL 19

Accepted Solution

by:
darbid73 earned 500 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
Learn about the eCommerce marketing trends for the year ahead.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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.

777 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