Solved

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

Posted on 2012-03-11
3
27 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

iPad in the Business – Quick Start Part 1 Getting Started with Active Sync Mail Many people seem to have issues connecting their iOS device to their company Exchange Server and this article covers the steps for Active Sync configuration as wel…
I recently went through the process of creating an installable image of an iPhone mobile app (an .ipa file) that beta testers could load onto their test devices. The process involved quite a few steps, but both Appcelerator and Diawi.org had decent …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now